Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9731] Android: setAnnotation and setRegion functions are not working in Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-06-20T10:36:19.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sSprint 2012-15 API, Release 3.0.0
ComponentsAndroid
Labelsapi, module_map, parity, qe-port, qe-testadded
ReporterAnirudh Nagesh
AssigneeJosh Roesslein
Created2012-06-22T14:51:17.000+0000
Updated2013-06-20T10:36:19.000+0000

Description

setAnnotation and setRegion methods are not working on Android Mapview. Its working fine on iOS. Run the attached app.js to test the functionality. Steps to reproduce: 1. Copy the app.js to a sample project. 2. Run it on a Google API's SDK. 3. Click on 'ann1a' and 'ann2a' buttons. Annotations wont get added to the map. ( setAnnotations() are used here). 4. Click on 'ann1b' and 'ann2b' buttons. Annotations get added to the map view. ( addAnnotations() is used here) 5. Same behavior is seen for setRegion and setLocation. ( setLocation works but setRegion does not) **Added updated test case that also tests the 'userLocation' and 'regionFit' properties.**

Attachments

FileDateSize
app.js2012-07-12T15:42:39.000+00003529
app.js2012-06-22T14:51:17.000+00003327

Comments

  1. Josh Roesslein 2012-07-12

    Created [PR #2552](https://github.com/appcelerator/titanium_mobile/pull/2552) to resolve issue.
  2. Anshu Mittal 2012-08-16

    Verified on: SDK:2.2.0.v20120816212512 Studio:2.1.1.201207271312 Devices: Samsung galaxy note(android v2.3.6)
  3. Priya Agarwal 2013-06-20

    Reopening just to update label.
  4. Priya Agarwal 2013-06-20

    Updated label and also verified.Tested on: Tested on: Device: Nexus 7 tab Android Version 4.1 SDK:3.1.2.v20130619101604 Appcelerator Studio: 3.1.1.201306131423 OS: OSX 10.8 acs:1.0.3 alloy:1.1.3 npm:1.2.14 titanium:3.1.1 titanium-code-processor:1.0.1

JSON Source