Exemplo n.º 1
0
        public IActionResult Get(string theme, int z, int x, int y)
        {
            string      themeFilename = char.ToUpper(theme[0]) + theme.Substring(1);
            CssDocument cssDoc        = CssDocument.Load($@"Themes\{themeFilename}Theme.sgcss");
            LayerGroup  layerGroup    = new LayerGroup();

            layerGroup.LoadStyledLayers("AppData", cssDoc);

            MapModel tempMapModel = new MapModel(GeoUnit.Meter);

            tempMapModel.Layers.AddRange(layerGroup.Layers);
            return(new XyzTileResult(tempMapModel, x, y, z));
        }