All Questions
Tagged with leaflet google-maps-markers
333
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],...
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)....
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, ...
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?
...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...