Skip to content

Tag: leaflet

Get Bounds with Leaflet

I have a DC.JSc Charts which are filtering my icons on my Leaflet Map. Basically, when I’m filtering I want my map to zoom on my selected icons. I’ve tried: Also tried : Error: Object doesn’t support property or method ‘getBounds’ Any ideas? Found my own solution: map.fitBounds(c…

Leaflet custom url custom tiles

I am working on a custom map with leaflet. So far everything worked fine, but unfortunately the program I am using to split my image into tiles dont start the count with 0 but instead with 1, so my tiles start with “1_1.jpg” and so my whole map is shifted by one tile on y- and x-axis. To rename th…

Halt Leaflet event propagation

I am working on a project that uses Leaflet. I have a big map that I am rendering in a browser div, and I am rendering a popup div (using z-ordering) above it when a user clicks on an element. The problem is that if you click on the ‘pop up window’ and drag, leaflet drags the underlying map as

Set tooltip on custom leafletjs control

I have made several custom buttons in Leafletjs – now I would like to add a hover-over tooltip to explain what the button does. I’ve tried putting a “title:” and “tooltip:” in the options but still do not see the text when I hover over the control. Answer To answer my own q…