0

I'm using leaflet and osm, but i need to load my own layer on the map. I've added some function on map moveend event that uses ajax, loads layer and adds it on to the map. But when i move the map e.g. to right it first shows osm image without my layer, then when i stop moving it start to draw new layer. It looks stupid. How to fix it or what is the best way to do it?

2
  • 1
    Have you tried changing the event, for example dragend instead of moveend?
    – sabas
    Commented Apr 29, 2015 at 15:50
  • Can you post us a jsfiddle/demo of things in action?
    – snkashis
    Commented Apr 30, 2015 at 15:43

0

Browse other questions tagged or ask your own question.