[TIMOB-7869] iOS: Titanium.Map.Annotation: when title or subtitle is clicked, annotation closes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-07-27T22:25:34.000+0000 |
Affected Version/s | Release 1.8.1, Release 1.8.2, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | parity |
Reporter | Dustin Hyde |
Assignee | Eric Merriman |
Created | 2012-03-02T15:14:40.000+0000 |
Updated | 2017-07-27T22:25:34.000+0000 |
Description
When the title or subtitles are clicked on an annotation, the annotation is closed. This does not happen on Android. Parity.
Steps to Reproduce:
1. Run code.
var win = Ti.UI.createWindow();
var atlantaParams = {
latitude:33.74511,
longitude:-84.38993,
title:"Atlanta, GA",
subtitle:'Atlanta Braves Stadium\nfoo',
animate:true,
rightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,
myid:3 // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS
};
atlantaParams.pincolor = Titanium.Map.ANNOTATION_PURPLE;
var atlanta = Titanium.Map.createAnnotation(atlantaParams);
var mapview = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},
animate:true,
regionFit:true,
userLocation:true,
annotations:[atlanta]
});
mapview.addEventListener("click", function(e) {
var info = '\n';
info += 'type: ' + e.type + '\n';
info += 'clicksource: ' + e.clicksource + '\n';
info += 'title: ' + e.title + '\n';
info += 'index: ' + e.index + '\n';
info += 'annotation: ' + e.annotation + '\n';
info += 'map: ' + e.map + '\n';
info += 'source: ' + e.source + '\n';
Ti.API.info(info);
alert(info);
});
mapview.addAnnotation(atlanta);
win.add(mapview);
win.open();
2. Click pin to open annotation. Close event alert.
3. Click title or subtitle. Close event alert.
Expected Result:
Annotation should stay open.
Actual Result:
Annotation closes. On Android it stays open. Parity.
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
Closing due to inactivity. If this issue still exists, please raise a new ticket.