This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

marker event does not work on phonegap

0

I found an issue on my phonegap app when i tried to execute something from marker's event mousedown. Same code works on web application.

Application init map, center, draw all markers, but it does not execute my code on mousedown event.

var marker1= new OpenLayers.Marker(position, icon_nodisp.clone()); marker1.events.register('mousedown', marker1, function() { alert('hola marker'); }); taxisLayer.addMarker(marker1);

please help me!!!

asked 26 Apr '13, 23:52

juanrod1's gravatar image

juanrod1
1111
accept rate: 0%

what is "phonegap"? Are you using Openlayers? So this question is about Openlayers?

(27 Apr '13, 01:52) aseerel4c26 ♦

Phonegap supports a whole bunch of platforms - which one (and which OS version of it) are you having a problem with, and which Phonegap / Cordova version? Also, are you testing on a real device or some sort of simulator / emulator?

(27 Apr '13, 02:02) SomeoneElse ♦

Source code available on GitHub .