Hi Team,
How to Set Map map bounds for Initial extend on map.
Regards,
Tamilarasan.
Hi Team,
How to Set Map map bounds for Initial extend on map.
Regards,
Tamilarasan.
Hi Tamilarasan,
Please set winformsMap1.CurrentExtent.
Regards,
Ethan
Hi Ethan,
ctrlThinkGEOMap.CurrentExtent = new RectangleShape(-124.26817355, 48.31938253, -67.27110324, 25.73149191); this work fine.
but i have lat/long for LeftTop,Left Bottom, RightTop and RightBottom then how to set the Map CurrentExtent .
Regards,
Tamilarasan.
Hi Tamilarasan,
It looks I don’t understand this question, as below is the constructor of RectangleShape:
public RectangleShape(double minX, double maxY, double maxX, double minY)
The UpperLeft corner: minX, maxY
The UpperRight corner: maxX, maxY
The LowerLeft corner: minX, minY
The LowerRight corner: maxX, minY
So your four points had been used for create the RectangleShape.
Regards,
Ethan
Hi Ethan,
I changed my code like
ctrlThinkGEOMap.CurrentExtent = new RectangleShape(dLeftTopLon, dRightBottomLat, dRightBottomLon, dLeftTopLat);
its work fine.Thanks.
Regards,
Tamilarasan
Hi Tamilarasan,
I am glad to hear that works.
Regards,
Ethan