All Questions
Tagged with google-maps-markers leaflet
333
questions
0
votes
0
answers
32
views
How to link to marker on Leaflet map from another URL
This works perfectly for activating a popup on a leaflet map on the same page:
{<a class="mplk" href="#where" onclick="t5.fire('click')">See on map</a>}.
The ...
0
votes
1
answer
50
views
Leaftlet divIcon with clickable button
I'm working on leaflet and I wanted to add click event for a icon in the custom divIcon as below,
If user clicks on the edit(pencile) icon then click event should trigger,
Here is the code I'm ...
0
votes
2
answers
42
views
In chrome, The pin is placed somewhere other than where click on leaflet
I have a leaflet map in an html page (I put my code below). When I open it in chrome browser and click on the map, it puts the pin somewhere other than where I clicked. But it works fine in FF browser....
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 ...
0
votes
0
answers
33
views
Prevent interruption of tabbing between Leaflet markers
I can tab with the keyboard between markers in my Leaflet map in Chrome and it nicely displays a rectangle around the selected marker and displays its tooltip. If I zoom or pan the map with the mouse, ...
0
votes
1
answer
53
views
leafletjs - How to access the html created inside the marker?
Using leafletjs I created a series of markers on the map, all looping from a JavaScript array. I also added some html, including the "I'm here" button as per the screen. I would like to be ...
0
votes
0
answers
23
views
Make a marker unable to use for a time
I have a map with markers. Every marker is a charging station. I want that the user that want to use the charging station, can book the place for an hour for example and set a time that is shown. When ...
0
votes
0
answers
81
views
change marker color based on properties
This is my first time here on stackoverflow. I have a doubt. I marked some markers on my map (I used OpenStreetMap). On each marker I put a drop-down menu with choices. Based on these choices, the ...
0
votes
1
answer
84
views
customized marker for leaflet locate control plugin does'nt appear
I created a customized marker for leaflet locate control and inserted it with this code
/*button to turn on GPS*/
//function from leaflet locate control (plugin)
L.Control....
0
votes
0
answers
30
views
Different colored icon for different Layer groups with popup
I am trying to use an example of Layer Groups and Layers Control from https://leafletjs.com for my website. My code is as under. I want to use different colored icons for different layer groups.
<!...
0
votes
0
answers
32
views
Trouble Adding Nearby Wikipedia Markers to Leaflet Map Using OpenCage Geocoding API
I'm working on a web project where I'm trying to add nearby Wikipedia markers to a Leaflet map based on geolocation data. I'm using the OpenCage Geocoding API to obtain latitude and longitude ...
0
votes
0
answers
203
views
How to use Fancybox 5 to show a photo when clicking a Leaflet marker
Is this possible at all?
This is my code so far
var marker = L.geoJSON(geojsonFeatureCamera, {
pointToLayer: function (feature, latlng) {
return L.circleMarker(latlng, ...
0
votes
1
answer
435
views
How to add Markes to a Leaflet-map with coordinates from database in Next.js?
I have to display markers for all the places in my database. At the moment I can display just one marker.
I maped over the array from database but I do not know how to connecte these two. I would ...
0
votes
1
answer
104
views
How to prevent openning a popup when you choose a layer to show in leaflet?
I'm a working on a project with leaflet where a it shows three layer
you can enable o disable whenever you want to display all the markers from that layer.
Every marker has a popup that it opens when ...
2
votes
0
answers
93
views
How can i add am option box into my Folium Draw Toolbar?
I'm working on a proyect where i use Folium and plugin.drawn in order to handle markers and polygons,
The idea it is simple, save all markers en polygons created on the map. It is a collaborative map
...