Drop/drag pin on map

You must Login before you can answer or comment on any questions.

Apple's map application allows it to drop a pin and change it's location by dragging it around. Does Titanium allow to do this somehow?

— asked 4 years ago by Florian Plank
1 Comment
  • any updates? thank you Andrea

    — commented 4 years ago by Andrea S

2 Answers

Hi everyone ... I was testing the Yuri's sourcecode but i can´t get the functionality and I´m using other way to add a pin when I changed the Region of the mapview.

I create a button icon like a Target, when I´m change the region update the latitude and longitude, when I touch the button then create a Pin.

Mapview

Mapa.addEventListener('regionChanged',function(e) {
    latitud = e.latitude;
    longitud = e.longitude; 
});
Target Button
btnApuntador.addEventListener('click', function() {
    MostrarIndicador("Obteniendo ubicación...");
    ObtenerCalles(latitud,longitud);                
});

I hope that helps someone, That works for me, thanks!

Your Answer

Think you can help? Login to answer this question!