Skip to content

Tag: leaflet

leaflet map shows up grey

I’m starting leaflet.js with the quickstart but my map shows as grey… is there something I’m missing? script.js: style.css: index.html: Gives me: Answer You need to implement the next section of the Quick Start Guide: you’ve initialized the map, but haven’t added any tile layers …

Using panTo and panBy simultaneously

I would like to create a map with some pins on it (using leaflet). When the user clicks on one of them, the map should move until the pin is at the bottom of the map in the horizontal center. My map is 400 pixels hight, so I’m using this code: It’s working like a charm – only the IE