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 |
what is "phonegap"? Are you using Openlayers? So this question is about Openlayers?
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?