Find tool - Zoom to extent

1684
4
10-26-2011 05:17 PM
SargentMcDonald
New Contributor III
I am using one of our locators in AGX find tool set up in a  configuration file. The find tool finds the address fine but zooms to what is a "city" zoom extent on our map instead of down closer to the address or intersection. Is there a way to modify the zoom extent in the find tool? If not, would I have to create an add-in modification that zoomed closer? What are others doing about the find zoom extent being out so far for addresses?
Thanks.
0 Kudos
4 Replies
JurajMalega
New Contributor II
hey...
if its your own add in you need to use ZoomTo Method

http://help.arcgis.com/en/arcgisexplorer/1500/sdk/componenthelp/index.html#/ZoomTo_Method_Geometry_Z...

Dim geom as Geometry = here you need your selected row geometry Row.Geometry

http://help.arcgis.com/en/arcgisexplorer/1500/sdk/componenthelp/index.html#/Geometry_Property/000300...

and take some ZoomLevel

ZoomTo(geom,16)

hope it helps!
0 Kudos
SargentMcDonald
New Contributor III
dusobarthezz;144858 wrote:
hey...

if its your own add in you need to use ZoomTo Method

QUOTE]

It isn't my add-in, it is the standard find functionality that doesn't zoom close enough.
Thanks.
0 Kudos
JurajMalega
New Contributor II
dusobarthezz;144858 wrote:
hey...
if its your own add in you need to use ZoomTo Method

QUOTE]

It isn't my add-in, it is the standard find functionality that doesn't zoom close enough.
Thanks.


hi
i dont know if its exactly the some tool like in explorer, but in samples of SDK is a source code of GeoNamesFind tool...

http://help.arcgis.com/en/arcgisexplorer/1500/sdk/conceptualhelp/index.html#/GeoNames_Find/000200000...

inside is Private Sub ZoomTo which is used on some places of code, for example ZoomTo(e.Node)...you can try change it on something like ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.ZoomTo((TryCast(node.Tag, Graphic)).Geometry.GetEnvelope(), 15)....15 like Level of zooming, you need to find level which you will like...in VisualStudio

i dont try it but i think it can work..

and you need rebuild the add in VisualStudio

hope it helps
0 Kudos
WoodyBailey
New Contributor II
I agree this would be nice to have a default zoom scale setting for zooming to a point... in ArcGIS Explorer AND Desktop! However the best workaround I found (and maybe this is new since you posted) is the option on the home ribbon to Zoom to Street level (or better yet) the Zoom to Scale add-in.. It works pretty well.[ATTACH=CONFIG]13052[/ATTACH]
0 Kudos