Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17953] iOS: Map annotations show buttons event is not declared on iOS 7.0.X

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-04-20T01:05:37.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsiOS
LabelssupportTeam
ReporterMarco Cota
AssigneeChee Kiat Ng
Created2014-11-04T00:36:09.000+0000
Updated2015-07-07T18:42:25.000+0000

Description

Issue

When customer creates map annotations and one of them is left without declaring left or right button the buttons are shown when the annotation si clicked, this only happens when the app is deployed with Ti SDK 3.4.0 and iOS device version 7.0.3/7.0.4.

Steps to repro

1. run test code 2. Click on the green annotation Expected Result The green annotation will not show any button (left or right) Actual Result The green annotation show both buttons

Test Code

var Map = require('ti.map');

var ary = [];


var win = Ti.UI.createWindow({
	backgroundColor:'#fff',
});

for(i=0;i<5;i++){ 
	var an1 = Map.createAnnotation({ 
	latitude : 37.775202, 
	longitude : -122.41924+(0.00005*i), 
	leftButton : 'red_x.png', 
	rightButton : 'tick_64.png', 
	pincolor : Map.ANNOTATION_RED, 
	title : "Sydney", 
	subtitle : "Sydney is quite chill",	
	animate : true, 
	annID : 1, 
	annIDCount : [1, 2] 
}); 
ary.push(an1);	
} 
var ann2 = Map.createAnnotation({ 
	animate : true, 
	latitude : 37.7749295, 
	pincolor : Map.ANNOTATION_GREEN, 
	longitude : -122.4194155, 
	title : "Anno2", 
	subtitle : "This is anno2", 
}); 

ary.push(ann2); 

var map = Map.createView({ 
	userLocation : false, 
	mapType : Map.NORMAL_TYPE, 
	animate : true, 
	annotations : ary, 
	region : { 
	latitude : 37.7749295, 
	longitude : -122.4194155, 
	latitudeDelta : 0.1, 
	longitudeDelta : 0.1 
	}, //Sydney 
	top : 0 
}); 

win.add(map); 
win.open();

Attachments

FileDateSize
mapView.zip2014-12-01T16:25:27.000+000063669
Screen Shot 2014-12-09 at 3.46.22 PM.png2014-12-09T23:50:21.000+0000304821
Screen Shot 2014-12-09 at 3.46.26 PM.png2014-12-09T23:50:21.000+0000303328

Comments

  1. Chee Kiat Ng 2015-03-16

    PR Here: https://github.com/appcelerator-modules/ti.map/pull/84 Pre-release here: https://github.com/appcelerator-modules/ti.map/releases/tag/ios-2.2.2
  2. Jon Alter 2015-04-15

    Merged... do we want to add this to titanium_mobile as well? [~ingo]
  3. Ingo Muschenetz 2015-04-15

    Yes, please. We can then mark it for 4.0 instead if we merge it to 4_0_X.
  4. Chee Kiat Ng 2015-04-16

    PRs to titanium_mobile merged. https://github.com/appcelerator/titanium_mobile/pull/6784 https://github.com/appcelerator/titanium_mobile/pull/6785 titanium.json updated. https://github.com/appcelerator/titanium_releases/blob/master/titanium.json [~jalter] feel free to resolve.
  5. Wilson Luu 2015-07-07

    Closing ticket as fixed. Verified that if I clicked on the green annotation, then both leftButton and rightButton does not appear. Tested on: Appcelerator Studio, build: 4.1.0.201507061821 Appc CLI NPM: 4.1.0-1 Appc CLI Core: 4.1.0-5 SDK: 4.1.0.v20150706111546 Node: v0.10.38 OS: Yosemite (10.10.4) Xcode: 6.4 Devices: iphone 6 plus (8.3), iphone 5c (7.0.3)

JSON Source