Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12763] Android: clicksource not returned with click event on Google Maps v2 module

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-07-13T18:36:46.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterBenjamin Hatfield
AssigneeEric Merriman
Created2013-02-15T23:30:10.000+0000
Updated2017-07-13T18:36:46.000+0000

Description

Run the below code on device. The returned clicksource is either [object Annotation] or null. Expect to see pin, title or subtitle instead of [object Annotation] as described in the Ti.Map.View click event: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Map.View-event-click
var MapModule = require('ti.map');
var win = Ti.UI.createWindow({backgroundColor: 'white'});
 
var appc = MapModule.createAnnotation({
	latitude: 37.389569,
	longitude: -122.050212,
	title: 'Appcelerator HQ',
	subtitle: 'Mountain View, CA',
	pincolor: MapModule.ANNOTATION_GREEN,
});

var mapview = MapModule.createView({
    mapType: MapModule.NORMAL_TYPE,
    region: {latitude: 37.389569, longitude: -122.050212, latitudeDelta: 0.2, longitudeDelta: 0.2},
    annotations: [appc]
});

function report (e) {
	Ti.API.info("mapview click: " + e.clicksource);
};

mapview.addEventListener('click', report);

win.add(mapview);
win.open();

Comments

  1. jithinpv 2013-03-15

    an error is shown while running the test case location:[293,9]ti:/module.js message:Uncaught error:Requested module not found:ti.map source:throw new error("Requested module not found:"+request); Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4 jithinpv
  2. Lee Morris 2017-07-13

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source