How to Zoom to Selected feature?

Topics: SharpMap Project, SharpMap v0.9 / v1.x, SharpMap v2.0
Jun 14, 2008 at 6: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.
thanks,
Jun 18, 2008 at 8:40 AM
It is very easy. Get the bounding box of your geometry using:
    Geometry.Envelope() or GeometryCollection.GetBoundingBox()
and then zoom your map:
    map.ZoomToBox(boundingBox)

Jirka

 

Jun 21, 2008 at 7: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?
thanks.
  
 esaaco,