Skip to main content

All Questions

1 vote
2 answers
4k views

How do I change the marker color in a leaflet cluster?

I am using openstreetmap and lealfet. I want to change the color of the marker in the cluster. That is, there is an array of coordinates. var addressPoints = [ [62.26763, 74.47733, "CAR", 1],...
Сергей Смирнов's user avatar
1 vote
2 answers
2k views

Python Folium tooltip permament

I have made a app with Folium that create a Leaflet map as a html. m=Folium.Map(location=[46.216, -124.1280],zoom_start=10) ID="test" folium.Marker(location=[46.216, -124.1280], tooltip=ID)....
Tnum's user avatar
  • 23
0 votes
1 answer
539 views

How to get marker based on latlng in leaflet?

I want to find and remove marker based on it's coordinates. Or remove all the markers in the given geometry. There are few solutions I'm aware of. First is to store all the markers in a map or array, ...
RomanistHere's user avatar
0 votes
1 answer
420 views

Leaflet: How can I add a marker to map only on mouseover another marker?

I have a polygon and two markers. The last marker (var power) I want to start only on mouseover or onclick the first marker (var myIcon). How can I do that? Could you please take a look on this code? ...
user1885271's user avatar
0 votes
0 answers
149 views

Leaflet marker example with custom icons - Left click event with Microsoft Edge is not triggered

When working with L.marker with custom icons, I noticed that when I add a click event to the markers like layer.on('click', function (e) { alert('clicked'); }); the "clicked ...
Bierdosenhalter's user avatar
0 votes
0 answers
159 views

Make markers layer permanent leaflet

Simple enough to add markers to leaflet map using onClick but every time I refresh the markers have been removed and I have to start over. How do I make the markers permanent so that on subsequent ...
Joseph Javadi's user avatar
0 votes
1 answer
923 views

Labels only appear if zoom Leaflet

I'm making a map in Leaflet and I have up to two labels per marker: var redIcon = new L.Icon({ iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red....
Andrew Dorsey's user avatar
0 votes
1 answer
489 views

can i make a Leaflet marker draggable on a single click?

I want a leaflet marker to be draggable on a single click, I passed the draggable property as true so the marker moves after a double click nonetheless I would like to use the map in a phone where the ...
Edwin Sánchez's user avatar
2 votes
1 answer
2k views

Change Leaflet marker icon with data from external geoJSON file

I have a problem at changing the icons of my geoJSON data on my Leaflet map. I'm loading my data from external geoJSON files. Therefore I'm using a XMLHttpRequest() to open the files (filenames are ...
E Lon Mask's user avatar
5 votes
1 answer
1k views

R leaflet - Add a new marker on the map with the popup already opened

I have a shiny app that displays a leaflet map. One of the functionalities of the app allows users to add a new geographic marker on the map. However, I would like to make the popup of such marker ...
nd091680's user avatar
  • 605
0 votes
1 answer
234 views

Leaflet on mobile - json marker with layer.setIcon disappear outside map

I have a map with different levels. Each level takes information from a json file and generates the icons with the layer.setIcon method. By dragging the map, the icons disappear when are outside the ...
Daniele's user avatar
  • 41
0 votes
0 answers
867 views

How to rewrite from react-leaflet v2 to v3?

There is a library that runs on react-leaflet v2. https://github.com/somarmeteorologia/react-leaflet-markers But my project uses react-leaflet v3. Therefore, this library needs to be rewritten for the ...
Aliaksei Valadzko's user avatar
0 votes
1 answer
1k views

How To Add Markers to a Layer And Display Them Using Leaflet

I want to create multiple markers from a .json asign a Latitude and Longitude from the .json bind a popup which shows Latitude and Longitude and display them in real time, the problem im having is ...
Jose Ignacio Heusser's user avatar
0 votes
1 answer
411 views

moving marker does not exist on type of import

moving marker does not exist on type of import please help me to solve this error. I have installed npm package npm install --save leaflet-moving-marker but it shows the error moving marker does not ...
Rajat Singla's user avatar
0 votes
1 answer
168 views

Leaflet .Repeated Markers in combination with esri-leaflet-geocoder

Hi I am new in Leaflet and I am trying to combine the Esri Geocoding control with the Leaflet.RepeatedMarkers. Actually, I need the markers to be repeated over [-180,180] of the first map. The below ...
Adam Brish's user avatar

15 30 50 per page
1
3 4
5
6 7
23