This project has moved and is read-only. For the latest updates, please go here.

How to Zoom to Selected feature?

Topics: SharpMap Project, SharpMap v0.9 / v1.x, SharpMap v2.0
Jun 14, 2008 at 7:59 AM
Hello All...
I Can Select any street on my map Street by using SharpMap.
Selecting by Giving A differnt Color for  Selected Street ,but I want to zoom to this Street.
Jun 18, 2008 at 9:40 AM
It is very easy. Get the bounding box of your geometry using:
    Geometry.Envelope() or GeometryCollection.GetBoundingBox()
and then zoom your map:



Jun 21, 2008 at 8:49 AM
thanks  for u jirka...
I can Select two points on map (I added points Layer )
can I select the shortest path between two points?