Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 4851

An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps

11 votes
Accepted

Creating a Bing and Google Tile Layer for Leaflet

One is a pending pull request to the Leaflet repo, the other is directly available as a Gist. Try whichever you prefer, and add your weight to the pull request to make it merged faster  :) …
MattiSG's user avatar
  • 675
1 vote
Accepted

Pick object by properties (and centre on it)

I don't know of any way Leaflet would allow direct property-based lookup. …
MattiSG's user avatar
  • 675
6 votes

Showing popup on mouse-over, not on click using Leaflet?

This is not a Leaflet-specific problem, but rather a question of Javascript. Store your markers in a collection, and then bind openPopup to a 'mouseover' event for all of them. …
MattiSG's user avatar
  • 675
11 votes
Accepted

location of a dragged and dropped marker using leaflet

Any draggable object will fire dragstart, dragend and other drag-related events. Simply listen to the dragend events of the marker you marked as draggable, and subscribe a handler that gets the latln …
MattiSG's user avatar
  • 675
19 votes
Accepted

How to insert new line text in popup

As the Leaflet documentation states, Marker.bindPopup() takes an HTML string as first parameter. If you want your lines to appear on different lines, you need to add the proper HTML markup. …
MattiSG's user avatar
  • 675
2 votes

Plotting multiple markers on Leaflet map

No, you're not using the L.Marker constructor. Constructor: L.Marker( <LatLng> latlng, <Marker options> options? ) And a L.LatLng is: Constructor: L.LatLng( <Number> latitude, <Number> longi …
MattiSG's user avatar
  • 675
1 vote

How to preload tiles in Leaflet?

I don't know of any Leaflet-specific way to do this. However, you could preload all images asynchronously and let the browser's cache handle everything for you. …
MattiSG's user avatar
  • 675