Skip to main content

All Questions

0 votes
0 answers
30 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 ...
Maxime Bonnet's user avatar
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 ...
Kishor's user avatar
  • 200
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....
Mostafa Zahedi's user avatar
0 votes
0 answers
72 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 ...
Andrea Lombardi Design's user avatar
0 votes
0 answers
32 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, ...
user258279's user avatar
0 votes
1 answer
52 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 ...
Andrea Lombardi Design's user avatar
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 ...
Anthony's user avatar
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 ...
Anthony's user avatar
0 votes
1 answer
83 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....
astaga's user avatar
  • 87
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. <!...
user1185088's user avatar
0 votes
0 answers
31 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 ...
Chrisy Haigh's user avatar
0 votes
0 answers
200 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, ...
Derko's user avatar
  • 1
0 votes
1 answer
853 views

r shiny leaflet extract latitude longitude and label of markers to a dataframe

I'm trying to create a shiny app that will allow users to click on a point in the map, show where they clicked with a marker, allow them to label the point with a name (that they type in free text) ...
Amy M's user avatar
  • 1,031
0 votes
1 answer
430 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 ...
Ida's user avatar
  • 1
0 votes
1 answer
103 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 ...
Victor Cubas's user avatar

15 30 50 per page
1
2 3 4 5
23