Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Get Center Lat and Long of Map

Is there a simple way to get the geo coordinates of a mapview (the point that is in the center of the mapview)? Or would I need to use the googleMap API and put the map in a webview? The info needs to go into a database after a person navigates to their selected location (figure I'd overlay a crosshairs imageview on the center of the map).

— asked September 27th 2010 by Kevin Ripka
  • center
  • map
  • mapview
0 Comments

1 Answer

  • Accepted Answer

    The event regionChanged should provide you the data you need. Let me know :)

    http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Map.MapView-object.html

    — answered September 27th 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.