- Based on result of Geometry data; we have added BaseLayer in the map using the tile renderer which is implemented from ITiledProvider interface (Ptv.XServer.Controls.Map.Layers.Tiled).
- We have set the map control envelope using the list of Points (i.e. X and Y coordinates).
Code: Select all
wpfMap.SetEnvelope(new MapRectangle(pointList), "OG_GEODECIMAL");
-- wpfMap: ptv wpf map control.
-- pointList: list of Points (i.e. X and Y coordinates).
-- "OG_GEODECIMAL": Point format
Active region is displayed in the center of the map as expected but some part of the region is still out side the map.
Find "ActiveRegionActualResult.png" which shows the current display of Map
Find "ActiveRegionExcpectedResult.png" which we want to display the Map in our App
Solutions tried:
We tried to decrease the zoom level of map programmatically as mentioned below, but its not working.
Option 1:
Code: Select all
ptvMap.Zoom = ptvMap.Zoom - 1;
Code: Select all
ptvMap.ZoomLevel = ptvMap.ZoomLevel - 1;