appcelerator - Some map annotations with custom images not displayed in Android app -


i'm developing android app in appcelerator studio.

in app have map displays annotations different custom images. annotations created way:

annotation = map.createannotation({    image: 'images/pin' + mynumber + '.png',    latitude: mylat,    longitude: mylong,    title: mytitle }); 

almost of annotations displayed, there few reason invisible. i've verified 'images/pin' + mynumber + '.png' actual path image want display.

image displayed:

enter image description here

image not displayed:

enter image description here

edit

things getting weirder.

for testing purpose created 2 imageviews image property set 'images/pin3.png' , 'images/pin163.png' respectively. both images displayed. but, stated, when setting 'images/pin163.png' annotation's image property, invisble.

i appreciate don't have idea issue might be.

edit 2 tests:

nexus 5, android 6.0.1:

  • pin 3 displayed
  • pin 163 not displayed

sony experia z, android 4.4:

  • pin 3 displayed
  • pin 163 not displayed

sony experia z, android 5.something:

  • pin 3 displayed
  • pin 163 displayed

i got working.

instead of setting annotation's image property, create view, set view's backgroundimage property image , assign view annotation's customview property.

var customannotationview = ti.ui.createview({     backgroundimage: 'images/pin' + mynumber + '.png', });  var annotation = map.createannotation({    customview: customannotationview,    latitude: mylat,    longitude: mylong,    title: mytitle }); 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -