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.
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
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();
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
Merged... do we want to add this to titanium_mobile as well? [~ingo]
Yes, please. We can then mark it for 4.0 instead if we merge it to 4_0_X.
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.
Closing ticket as fixed. Verified that if I clicked on the green annotation, then both
leftButton
andrightButton
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)