All Questions
18
questions
0
votes
0
answers
74
views
Leaflet js - How can I change marker icon dynamically according to some conditions present in the database?
I have a list of places in a MySql database (with id, latitude, longitude, counter, timestamp). To add them to the map I make an asynchronous call to a php file where there is a search query. Places ...
1
vote
0
answers
422
views
Leaflet Control Search: Search only markers which are currently visible on the map
I am working on my first project using Leaflet javascript library. After succesfully importing a geoJSON file on the map, I am trying to create a new geoJSON layer (currShownMarkersLayer), populated ...
0
votes
1
answer
148
views
MapQuest, Leaflet - disable marker on directions layer
Is there a way to hide markers generated at directions layer ? I'd like to draw only route.
Or is there a way to set custom icon instead of build ones ?
According to docs:
https://developer.mapquest....
0
votes
1
answer
565
views
Leaflet map with geojson data. Popup with no information
I created a map in Leaflet and I have GeoJSON data. I added my data to my map. But on the map, there are only points with no information when I click on them. I tried to add use this :
var marker = L....
0
votes
1
answer
1k
views
Is it possible to display react leafletjs markers on specific zoom levels?
I'm using react Leaflet js map, and I'm displaying markers of fetched data from my database on the map, but the issue is that I have kind of 5000 markers and it's a lot to display on zoom level 9, so ...
0
votes
1
answer
247
views
Use OpenWeather Icons as Markers on Leaflet Map
I'm trying to add the weather icons returned from an openweather API call to my leaflet map as markers but not getting any luck.
They will display in a pop up on the marker in an tag and when I ...
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],...
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 ...
1
vote
1
answer
1k
views
Changing marker color based on data property in Leaflet
I have a set of data in json which I wanna set an specific marker color for each in leaflet.
the data is like this:
var BillingDate = [
{"branchcode":"668",
&...
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 : '...
1
vote
1
answer
1k
views
how to resize dynamically markers on a map
My exercise with Leaflet.js : resize the icon of a marker when zooming in or out by modifying the iconSize option (ie not by changing the icon source).
I tried this :
function resize(e) {
for (...
1
vote
2
answers
3k
views
Marker cluster leaflet : dynamically modify icon
I'm using Leaflet and the marker cluster plugin and I want to dynamically modify the icon of the cluster from which child is inside.
First I create my clusterGroups then I add some markers.
I create ...
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 ...
5
votes
1
answer
11k
views
How to highlight marker on click with leaflet and jQuery Birdseye
I'm very new with leaflet, trying to duplicate the function on foursquare, highlight the clicked marker and reset it to the original maker when map is clicked or if another marker is selected and ...
1
vote
1
answer
1k
views
Leaflet.js - markers get overlapped with overlay
I have leaflet.js layer control with Google Maps, OSM and Yandex maps layers and Yandex Maps traffic overlay (it's just color lines showing traffic)
I use following plugins for Google and Yandex maps ...