Select to view content in your preferred language

hyperlinking from flexviewer to googlemaps

1248
2
04-04-2011 10:50 AM
glennhazelton
Occasional Contributor III
i am wondering if there is a set of parameters like {x} {y} or {lat} {lon) that i could use to open google maps or bing at the same location as the center of the flexviewer 2.2 display.
Tags (2)
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
Yes, you can get the center of the map with map.extent.center.

There are examples for parsing the x and y into latlong in both the code for the Coordinate Widget as well as in this API sample:
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=ReadURL
0 Kudos
FrankRoberts
Occasional Contributor III
I also have the capability in the Street view and more widget.  The update later on this week will allow for a default selection of what you view when you click on the map, such as a google map.

http://www.arcgis.com/home/item.html?id=dc56d2ab11534d24a5559ea9dc8f5119

Frank
0 Kudos