[TIMOB-13137] BlackBerry : Tapping on the annotations on maps each time refreshes the street names
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Hold |
Resolution Date | 2015-04-14T17:12:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Pedro Enrique |
Created | 2013-03-20T19:06:59.000+0000 |
Updated | 2017-03-16T20:18:15.000+0000 |
Description
Description:
1.Use the code snippet below & run it on BB simulator/device
var win = Titanium.UI.createWindow({orientationModes:[Ti.UI.PORTRAIT]});
var mountainView = Titanium.Map.createAnnotation({
latitude:37.389493,
longitude:-122.050166,
title:'Appcelerator Headquarters',
subtitle:'Mountain View, CA',
pincolor:Ti.Map.ANNOTATION_GREEN,
//rightView: 'images/appcelerator_small.png',
leftView: 'images/appcelerator_small.png'
});
var waitersOnWheels = Titanium.Map.createAnnotation({
latitude:37.390749,
longitude:-122.051651,
title:'Waiters On Wheels',
subtitle:'Mountain View, CA',
pincolor:Ti.Map.ANNOTATION_RED,
//rightView: 'images/appcelerator_small.png',
leftView: 'images/appcelerator_small.png'
});
var tlBeerGarden = Titanium.Map.createAnnotation({
latitude:37.39504,
longitude:-122.02937,
title:'TL Beer Garden',
subtitle:'Sunnyvale, CA',
pincolor:Ti.Map.ANNOTATION_PURPLE,
//rightView: 'images/appcelerator_small.png',
leftView: 'images/photo.jpg'
});
var mapview = Titanium.Map.createView({
region: {latitude:37.390749, longitude:-122.051651},
annotations:[mountainView, waitersOnWheels]
});
win.add(mapview);
// Handle click events on any annotations on this map.
waitersOnWheels.addEventListener('click', function(evt) {
mapview.addAnnotation(tlBeerGarden);
if (evt.clicksource == 'leftView') {
Ti.API.info('Annotation ' + evt.clicksource + ', left view clicked.');
}
if (evt.clicksource == 'rightView') {
Ti.API.info('Annotation ' + evt.clicksource + ', right view clicked.');
}
});
win.open();
2.After launch of the app tap on the annotation pins
Actual Result:
1.You will see that after taping on the pins the street names refresh every time you do it
Expected Results:
1.The street names should not refresh
Since we will be implementing Map V2 using the new 10.1 Map API it probably makes sense to postpone this ticket until we have implemented Map V2.
Placing these items on hold for the moment based on community interest.
Closing ticket as BlackBerry is no longer supported by us.