prtksxna / leaflet-map-component

A <leaflet-map> polymer web component
http://prtksxna.github.io/leaflet-map-component/
MIT License
44 stars 12 forks source link

On tables/Mobiles doesn't work #26

Open itamayo opened 10 years ago

itamayo commented 10 years ago

Hi there,

There is some problems with events on tables and mobiles (touchable devices). Zoom in/out doesn't work and neither markers/polygons. I have same related problem in other projects, whether I resolve the problem I would contact with you.

Good luck

itamayo commented 10 years ago

It appears that tap/touch event are triggered as "context menu", at least does work

Marker.on('contextmenu', function (e) {
                    //code
                }).addTo(map);
prtksxna commented 10 years ago

Are you sure you have zoom enabled? I have it working alright on another project - http://prtksxna.github.io/pindrop/.

itamayo commented 10 years ago

It doesn't work to me, neither on PC (chrome/firefox updated ) [pindrop]

prtksxna commented 10 years ago

@itamayo Very strange. Could you open up console and tell me if you are seeing any errors. What versions are you using and on what OS?