Exemple #1
0
        public IActionResult GetCapabilitiesTileMaps()
        {
            // TODO: services/tilemapservice.xml
            var layers = Utils.SourcesToLayers(this.tileSourceFabric.Sources);
            var xmlDoc = new Tms.CapabilitiesDocumentBuilder(this.BaseUrl, layers).GetTileMaps();

            return(File(xmlDoc.ToUTF8ByteArray(), MediaTypeNames.Text.Xml));
        }
Exemple #2
0
        public IActionResult GetCapabilitiesTileSets(string tileset)
        {
            // TODO: services/basemap.xml
            var layers = Utils.SourcesToLayers(this.tileSourceFabric.Sources);
            var layer  = layers.SingleOrDefault(l => l.Identifier == tileset);
            var xmlDoc = new Tms.CapabilitiesDocumentBuilder(this.BaseUrl, layers).GetTileSets(layer);

            return(File(xmlDoc.ToUTF8ByteArray(), MediaTypeNames.Text.Xml));
        }