Select to view content in your preferred language

Pass center of mapview

1090
2
10-12-2011 10:57 AM
AaronNash
Deactivated User
I have been trying to grab the center of the map view to send the lat and long over to google maps, does anyone have any code to grab the lat and long from the center of the map view where the crosshair would be?

thanks,
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Aaron,

   It kind of depends on what your maps spatial reference is. But you can use
map.extent.center
to get the maps center point.
0 Kudos
AaronNash
Deactivated User
I knew it was something simple, thanks for the help. Problem solved
0 Kudos