Zoom Level over 20 in UWP maps control

随声附和 提交于 2019-12-25 04:26:52

问题


I need zoom level 21 in maps. I added map control following MSDN article (link => Overlay tiles from a web service) and also followed instruction for "Replace the default map" at page bottom.

As I see, map zooms only to level 20 and that also is not 20, it is actually zoomed 19.

I tried setting ZoomLevelRange for tile source, but that does also not help, code:

var dataSource = new HttpMapTileDataSource("http://www.webservicename.com/z={zoomlevel}&x={x}&y={y}");

MyMap.Style = MapStyle.None;

var tileSource = new MapTileSource(dataSource) {

   ZoomLevelRange = new MapZoomLevelRange
   {
          Max = 21,
          Min = 1
   },
   Layer = MapTileLayer.BackgroundReplacement 

};

MyMap.TileSources.Add(tileSource);

Is it possible to have zoom level 21 for custom tile source?

Thanks,

Amir


回答1:


Sorry, I don't think it's possible to zoom in farther than level 20.

Each of the zoom levels has it's own set of "tiles" that are needed to render the map at that zoom level. Likely, the tiles to render zoom levels closer than 20 don't exist, so it wouldn't be possible to render the map at that zoom level.



来源:https://stackoverflow.com/questions/38844510/zoom-level-over-20-in-uwp-maps-control

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!