I have a leaflet map with some Markers and I need to update custom option inside Marker option when I make doble click on each Marker. I only can create new Marker with this new info but this will take so much space. Default options in Marker like latitude, longitude or icon have specific setFunction but custom options don’t. Someone
Tag: openstreetmap
React-Leaflet Map doesn’t update
My issue is that react-leaflet <MapContainer> doesn’t center on a position that I set dynamically. The basic logic is that I have a form where I enter Street and House Number, then I make call for Nominatim and get some JSON format data, from where I extract latitude and longitude of a building. These lat and long I pass to
Display Multiple Markers on OpenLayers 5 dynamically with Pop-up window
I am trying to display two Markers on the Map which i already saved in an array. I want the Markers to be dynamically displayed and with a Pop-up window for each one. here is the code i wrote and edited from my Last question. I get nothing displayed on the Map, can somebody fix the problem?, I have tried
leaflet map shows up grey
I’m starting leaflet.js with the quickstart but my map shows as grey… is there something I’m missing? script.js: style.css: index.html: Gives me: Answer You need to implement the next section of the Quick Start Guide: you’ve initialized the map, but haven’t added any tile layers to it, hence gray. So read on to the section beginning with Next we’ll add
Geolocation: Mapping and POI with OpenStreetMap
I’m making a website, where the visitor gets its position showed on a map and within a chosen radius (e.g. 10km) the visitor can see some POIs (e.g. Restaurants, Bars). I have this code so far: It shows me my position on a map with a marker using Google Maps. The thing is, I would like to use the maps