![]() ![]() ![]() Here we have to override the tileMatrixSet because Web World Wind defaults to the first tileMatrixSet returned, but from National Map, the first tileMatrixset returned is not compatible with Web World Wind, therefore we force it to use National Map's second TileMatrixSet which is the "GoogleMapsCompatible" TileMatrixSet (GoogleMapsCom patible) which is compatible with Web World Wind. Retrieve a WmtsLayerCapabilities object via the desired layer name (as identified as one of the titles in the tles array) * This Function is called by the JQuery call "$.get(serviceAddress).done(CreateLayer) " which passes it the getCapabilities XML Document that was retrieved from the tileserver defined by the serviceAddress. Var NationalMapHydrographyLayer = function() //Defines the name of this class * This class is a wmts layer that pulls its tiles from the National Map tile server which is ran by the USGS. The key, at least for the National Map WMTS tilesets, is to override the tileMatrixSet because Web WorldWind defaults to the first tileMatrixSet returned, but from National Map, the first tileMatrixset returned is not compatible with Web World Wind, therefore we force it to use National Map's second TileMatrixSet which is the "GoogleMapsCompatible" TileMatrixSet. In short, yes, but with "GoogleMapsCompatible" tilesets. Is there some sort of specific tile matrix set required by WorldWind? Is WMTS not yet supported by Web WorldWind? The same GeoServer WMTS server works fine with a CesiumJS and OpenLayers app, but not with WorldWind. I've had similar problems trying to get Web WorldWind to get data from a GeoServer WMTS server. Add the layers to WorldWind and update the layer manager Var wmtsLayer = new WorldWind.WmtsLayer(wmtsConfig) ![]() Create the WMTS Layer from the configuration object Var wmtsConfig = on(wmtsLayerCapabilities) Form a configuration object from the WmtsLayerCapabilities object Var wmtsLayerCapabilities = wmtsCapabilities.getLayer(layerIdentifie r) Retrieve a WmtsLayerCapabilities object by the desired layer name Var wmtsCapabilities = new WorldWind.WmtsCapabilities(xmlDom) Create a WmtsCapabilities object from the XML DOM The page hits and adds a layer from the response via createLayer, but the resulting GetTile requests get a 403 - Forbidden. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |