Capture certain area in the map with the display capture geometry(rectangle)
By capturing the geometry types rectangle from Display capture geometry, using those points I want to open google maps only for that area
0
-
I'm not sure if you can pass an extent to Google Maps, I couldn't find anything in the documentation. As a workaround, you could use the rectangle's center coordinate (i.e. geometry1.Extent.GetCenter), and estimate the zoomlevel based on the width or height of the rectangle.
Use the RunExternalCommand activity with- Command Name: OpenWebPage
- Command Parameter: A URL such as https://www.google.com/maps/@?api=1&map_action=map¢er=37.7992940,-122.3976113&zoom=15
0 -
Ok. Thank you. I want only the selected extent to display in the new web page but when I pan around the map I am able to see content outside of the extent also. 0 -
If I understand you correctly, you want to open Google Maps with a certain extent, and have a user not pan or zoom outside that extent. Is that correct? I don't think we have control over how Google Maps behaves with regards to allowing zoon and pan actions. Perhaps you could post a question at https://stackoverflow.com/questions/tagged/google-maps 0 -
Thank you. Yes. I just using google maps as an example. Is it possible to do on the maps I published. 0
Please sign in to leave a comment.
Comments
4 comments