Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3026] No way to find a map's location if it isn't changed

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-08-29T15:17:08.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labels1.6, android, mapview
ReporterShish
AssigneeNeeraj Gupta
Created2011-04-15T03:35:03.000+0000
Updated2017-03-09T23:38:34.000+0000

Description

MapView.region and MapView.location seem to be write-only variables, so I can't get the location from them. Listening for the regionChanged event, that only fires after the region is changed, so if the user leaves the map where it is I can't use that either.

At the moment I'm having to wrap the setLocation call so that it saves the location to a variable within my app and then calls setLocation on the app, then the regionChanged event updates that variable, then getLocation returns that variable, but that seems messy when the map object could have getLocation built in...

Comments

  1. Junaid Younus 2012-08-29

    No test case provided, unable to reproduce, ticket marked as invalid. If this is supposed to be a feature request, feel free to reopen this ticket and edit it with the correct settings.
  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source