All Questions
Tagged with leaflet google-maps-markers
333
questions
68
votes
1
answer
53k
views
Leaflet.js center the map on a group of markers
I'm using Leaflet.js and would like some way to centre the map on the markers I have so that all are within the user's view when the page launches. If all the markers are clustered in a small area, I ...
57
votes
5
answers
59k
views
Large dataset of markers or dots in Leaflet [closed]
I want to render about 10.000 markers or dots on a leaflet map. I already did it the regular way and I found it is way slower compared to Google Maps. I'm looking for a way to render multiple elements ...
45
votes
8
answers
87k
views
custom marker icon with react-leaflet
I tried everything I found on the web, Stackoverflow and Github, and I still can't make it.
I want to make a custom marker with a custom icon, but with my code below I always got an error : '...
24
votes
4
answers
37k
views
Leaflet Awesome-Markers (Adding Numbers)
I am using the Leaflet.Awesome-Markers plugin with LeafletJS.
I have implemented it correctly, however now I'd like to be able to use numbers from 0 - 9 to represent markers.
Here's a JS Fiddle ...
23
votes
3
answers
62k
views
leafletjs marker bindpopup() with options
The leaflet documention shows you can add a popup to a marker with
marker.bindPopup("<b>Hello world!</b><br>I am a popup.").openPopup();
or create a standalone popup with
var ...
19
votes
5
answers
38k
views
Rotate marker in Leaflet
How can I rotate a marker in leaflet? I will have a lot of markers, all with a rotation angle.
I've tried this solution from runanet/coomsie at Leaflet on GitHub, but nothing happens with my marker:
...
15
votes
1
answer
37k
views
leaflet.js - Set marker on click, update position on drag
for a small project I am working on, I need to be able to place a marker on a leaflet.js powered image-map and update the position of this marker, if it gets dragged. I use the following code to try ...
11
votes
2
answers
14k
views
Variable marker size feature in leaflet R
Is there a way to change the marker size in a map based on a certain value?
For example, if I were plotting the population of individual cities and the marker was a circle, the circle would be ...
9
votes
1
answer
5k
views
How to replicate marker position on map loop Leaflet JS
I'm using Leaflet JS to build a custom map (with custom tiles), it loops East to West. I've added a couple layers of markers and polygons (to indicate a route in the map) and each marker has pop up ...
8
votes
2
answers
41k
views
find latitude & longitude of saved marker in leaflet
I have circle marker
var myMarker = L.circleMarker(stuSplit,
{ title: 'unselected' })
.bindLabel("Name: " + students[i][j][0]
+ " ReachTime: " + students[i][j][2]);
...
8
votes
2
answers
21k
views
Leaflet custom marker icon scale to zoom
I use Leaflet to draw an OpenStreetMap and attach it with a custom icon marker
var mymap = L.map('mapid').setView([x, y], 13);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?...
8
votes
2
answers
14k
views
Is there a way to change the icon image depending on the zoom level? (leaflet.js)
I am making a region drawing tool for a web application and I am using markers as anchors that the user can use to change the shape of a polygon.
This is what I have so far. http://demos.nodeline....
8
votes
2
answers
3k
views
Leaflet.label not showing over the markers
I am having a set of geoJSON points and they have corresponding labels attached to them.
var points = L.geoJson (null, {
onEachFeature: function (feature, layer) {
layer.options....
8
votes
3
answers
5k
views
Remove specific leaflet Markers in R shiny.
I have a layer of CircleMarkers and I am trying to remove only the markers that have a certain layerId. The id's for these circle markers are in a dataframe.
Below is a simple example:
Suppose I ...
7
votes
1
answer
9k
views
Use marker icon with only awesome fonts, no surrounding balloon
I have this code that works fine, but I need to get only the icon to show and not the "balloon" with its shadow.
I have tried with removing "markerColor..." but that is only changing to the default ...