I am completely new at gis but I have to make an add in to work with arcmap to make it zoom to a place I want it to go. (I use a textfield in a php website to tell where to go in arcmap) Is there a zoom function I can use in my case?
1 Answer 1
Depending on what input data you have (coordinates, street address, city name etc), you might try different approaches.
Develop a .NET/Java based ArcMap add-in or Python Add-in where a user will enter a certain place (in the form you define beforehand), and the current map extent will be updated.
If you are fine doing this in several steps without custom programming - consider using ModelBuilder or writing a Python script tool to let user enter coordinates/place name and then implement a logic that will geocode the address or put a pin on the map. Then the user will use a built-in tool for zooming to this object.
If it is coordinates, then use might just use the Go to XY tool.
-
I think I have to use the XY tool but it has to automatically zoom to the x and y coordinates when I press a button in my php.Loko– Loko2013年10月21日 09:58:47 +00:00Commented Oct 21, 2013 at 9:58
-
1I don't really follow you on what you mean by "press a button in my php". You could maybe edit your question or add a comment with some information? There is no way to make ArcMap do something when you are in some website (it is a desktop application). If you want something to happen in your ArcMap session while you interact with a web site, you would need to start using some client-server logic, which is really a different story.Alex Tereshenkov– Alex Tereshenkov2013年10月21日 10:07:57 +00:00Commented Oct 21, 2013 at 10:07
-
I mean the webbrowser toolbox tool in C#, i want it arcmap to react to the webbrowser toolbox toolLoko– Loko2013年10月21日 10:26:43 +00:00Commented Oct 21, 2013 at 10:26