Skip to main content

All Questions

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 ...
Victor Cubas's user avatar
-2 votes
1 answer
182 views

I'm tring to code to get a popup marker on my leaflet map when I double click on the map

I want to get a popup marker(by image) on my map every time I double click on the screen. Every time I try to copy other's code, it won't work. Can someone help plz?THE MARKER NEEDS TO BE AN IMAGE! I ...
Markus Viljoen's user avatar
0 votes
1 answer
728 views

React-leaflet problem to create <Marker> <Popup> instance dynamic

I would like to create a react-leaflet object dynamically. Normal leaflet objects work, but react-leaflet do not. Code example on: https://codesandbox.io/s/show-problem-react-leaflet-marker-popup-...
Martin's user avatar
  • 25
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
1k views

Leaflet map: marker click change popup of different marker

I'm very basic at programming and require that option just for one specific project. I'd love to change content of one master popup by clicking on different markers. Thing is, I have 0 clue how to get ...
Mateusz Gnys's user avatar
1 vote
1 answer
552 views

Display marker popup with data information

I run my code, but it can't not display the popup with data information,just can display the marker. JS var osmUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', osmAttrib = '&...
wei shiuan's user avatar
0 votes
1 answer
566 views

Open the popups of all markers that are visible on the map with a zoom > 10

I need to open all the markers that are visible on the map at Zoom, 10. I also use leaflet.markercluster. Init map: initMap() { this.map = L.map('map', { center: [55.55, 37.61], zoom: 9, ...
ncux199rus's user avatar
0 votes
1 answer
2k views

L.DomUtil.get() modifiers don't update HTML data

Creating a map with markers displayed on it. When clicking a marker, this one has to display a Popup. I extended the L.Popup like this L.InfrastructurePopup = L.Popup.extend({ options: { ...
MHO's user avatar
  • 23
1 vote
1 answer
4k views

How to label markers similar to Google Maps in Leaflet [closed]

I am using Leaflet to load bing map tiles. The map is loading fine and I am able to put markers on the map. But I want to know how to show label for the markers similar to the way they are shown in ...
Amit Kumar's user avatar
0 votes
0 answers
179 views

Leaflet marker popup not rendering

I have markers in a list, I am trying to read markers in the list from my database to show pop up information but it's not working. I am using jinja to print the list from python into html, i just get ...
lloyd's user avatar
  • 433
0 votes
2 answers
3k views

How to show leaflet popup content from ajax method?

I am new to leaflet maps.I am trying to show some markers on map and regarding data for each marker in a popup. This my ajax call to get latlng of markers. var getLocations='/equipment/api/...
laz's user avatar
  • 291
0 votes
1 answer
3k views

Centre text in leaflet popup on marker

I am currently using leaflet to create a map and I was wondering if it was possible to centre the text in a popup? Here is an example of what a marker currently looks like, as you can see, the ...
MLMM's user avatar
  • 95
2 votes
1 answer
2k views

Mapbox search, open popup/tooltip and change the custom marker image

I have a mapbox map with custom marker images and a search field - when there is a full match between the search string and the marker's feature.properties - the map is zoomed in to the coordinates of ...
Keranski's user avatar
0 votes
0 answers
319 views

LeafletJS Popup work without openPopup

I'm using a JSON file to get the data and creating markers with it.I'm binding a popup to the marker.Now the bizarre thing is the popup will open once the marker is clicked.There isn't any method that ...
Brett Hamilton's user avatar
0 votes
2 answers
550 views

Update marker's popUp content without rewriting all HTML leaflet

I would like to know if there's a way to change the content of a marker's popUp without having to rewrite all the html that is already there, I mean, I would like to toggle a class of one of the ...
ShinkenDT's user avatar

15 30 50 per page