NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×98
×4
×1

question asked: 26 Apr '13, 23:52

question was seen: 2,321 times

last updated: 27 Apr '13, 02:02

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum