ZoOoOoM tO LoCatioN

Dec 10, 2008 at 4:26 PM
hey guys;

is it possible to zoom to a location based on a value in the dbf ?

for example zoom to the feature with id=5 ?
Coordinator
Dec 10, 2008 at 4:54 PM
hi snix, assuming v0.9/1 you would call GetGeometryById on the shapefile provider, this will give you a geometry from which you can get the centroid or bounding box which you would use to call map.ZoomToExtent(boundingBox) or map.Center = centroid

hth jd
Nov 23, 2009 at 1:41 PM

i have a little problem with that i use ajaxmap and when i used the previous code it works fine but when i zoom in or i zoom out it will be render the map not from the current Geometry or the current Location

how can i solve it?