Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13137] BlackBerry : Tapping on the annotations on maps each time refreshes the street names

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionHold
Resolution Date2015-04-14T17:12:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsBlackBerry
Labelssdk-bb
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-03-20T19:06:59.000+0000
Updated2017-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

Comments

  1. Russell McMahon 2013-07-29

    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.
  2. Ingo Muschenetz 2015-04-14

    Placing these items on hold for the moment based on community interest.
  3. Lee Morris 2017-03-16

    Closing ticket as BlackBerry is no longer supported by us.

JSON Source