examples/WMTS.js
function (xmlDom) {
            // Create a WmtsCapabilities object from the XML DOM
            var wmtsCapabilities = new WorldWind.WmtsCapabilities(xmlDom);
            // Retrieve a WmtsLayerCapabilities object by the desired layer name
            var wmtsLayerCapabilities = wmtsCapabilities.getLayer(layerIdentifier);
            // Form a configuration object from the WmtsLayerCapabilities object
            var wmtsConfig = WorldWind.WmtsLayer.formLayerConfiguration(wmtsLayerCapabilities);
            // Create the WMTS Layer from the configuration object
            var wmtsLayer = new WorldWind.WmtsLayer(wmtsConfig);

            // Add the layers to WorldWind and update the layer manager
            wwd.addLayer(wmtsLayer);
            layerManager.synchronizeLayerList();
        }
function (xmlDom) {
            // Create a WmtsCapabilities object from the XML DOM
            var wmtsCapabilities = new WorldWind.WmtsCapabilities(xmlDom);
            // Retrieve a WmtsLayerCapabilities object by the desired layer name
            var wmtsLayerCapabilities = wmtsCapabilities.getLayer(layerIdentifier);
            // Form a configuration object from the WmtsLayerCapabilities object
            var wmtsConfig = WorldWind.WmtsLayer.formLayerConfiguration(wmtsLayerCapabilities);
            // Create the WMTS Layer from the configuration object
            var wmtsLayer = new WorldWind.WmtsLayer(wmtsConfig);

            // Add the layers to WorldWind and update the layer manager
            wwd.addLayer(wmtsLayer);
            layerManager.synchronizeLayerList();
        }
function ( xmlDom ) { // Create a WmtsCapabilities object from the XML DOM var wmtsCapabilities = new WorldWind . WmtsCapabilities ( xmlDom ) ; // Retrieve a WmtsLayerCapabilities object by the desired layer name var wmtsLayerCapabilities = wmtsCapabilities . getLayer ( layerIdentifier ) ; // Form a configuration object from the WmtsLayerCapabilities object var wmtsConfig = WorldWind . WmtsLayer . formLayerConfiguration ( wmtsLayerCapabilities ) ; // Create the WMTS Layer from the configuration object var wmtsLayer = new WorldWind . WmtsLayer ( wmtsConfig ) ; // Add the layers to WorldWind and update the layer manager wwd . addLayer ( wmtsLayer ) ; layerManager . synchronizeLayerList ( ) ; }
Called asynchronously to parse and create the WMTS layer
Called asynchronously to parse and create the WMTS layer