Im trying to conect my “See in map” (html) with my map and open a popUp that is already created (i click on the map and the popups open). i know i have to use something like but i dont know how to do it. Can anyone help me? Thank you! Answer I see that all of your links have
Tag: leaflet
How do I edit the popups bound to a polygon object
Currently, wherever I click on the map a popup appears with the country’s name. The country is determined by a geoJSON file that has the names and multi-polygon lnglat coordinates that sets the borders for each country to save me entering each one individually. However, I want each popup bound to a leaflet polygon to display various amounts of information
Remove previous markers before update marker in leaflet map?
Here I am trying to update the markers on map upon successful ajax request but I am being unable to remove previously added markers before adding new one. How can I do it here ? Answer Here’s an example, that stores the Marker inside each location Object of your locations Array. Additionally, create two functions, drawLocationsToMap and removeLocationsFromMap.
How to get a regular form field to autocomplete a geosearch with Leaflet’s Geosearch plugin?
I’m trying to get a regular form field used for searching for an address to autocomplete its values, as seen on this page, using Leaflet Geosearch plugin. So far the documentation says it can be binded to a form. Jquery UI’s autocomplete looks like it can accomplish this, however i have not been able to wrap my head around how
Use lasso instead Rectangle for select reign in Leaflet
I am trying to show a leaflet map using R(I can not use Shiny package). I use a ‘DT’, ‘crosstalk’ and ‘leaflet’ packages to calculate the mean of a column for selected data in map. In the map, it select the points only by Rectangle shape. Is it possible to select by lasso ? I found leaflet-lasso(Lasso selection plugin (Demo),Jan
Download shapes from leaflet map
I have online access to a leaflet map, but cannot reach the authors. Is there a way to download shapes from this map (to shp, geojson, etc.)? I thought of running some leaflet-related javascript code in browser console, but I couldn’t find any relevant commands in the documentation. Answer When you look into the dev tools of the link you
Dynamically Loading multiple External GeoJson data files and calling multiple layers dynamically using Leaflet
I have about 50 different map layers to be added on a map. Each map layer data is stored as separate JS file (lay1.js, lay2.js, …… lay50.js). Each layer have its own different properties also like Some layers may be polygons, some may be markers etc. My code is almost like as given below. Is there any way to add
Leaflet controls not responding to click
Not sure how I have managed this but my leaflet zoom controls are not clickable? They do show up on the screen but there is no mouse change when hovering over them. Do I need to create another layer for the controls or am I missing something else from my code? update: The map will also not scroll or zoom
How to generate markers from an api in leaflet?
I’m making in app using vue and leaflet and I need to generate markers from and API. But for some reason, only the default markers are showing. I can access the api data in the DOM. I just can’t figure out how to iterate over it and show the data on the DOM. pls help here’s the code Answer You
symfony – key “id” for array with key “0,1,2,3,4,5,6” does not exist
I have an error in my symfony project: I no longer have an object from 0 to 6 in my database because I had to overwrite the data with make: auth, I believe for security I have new values but I don’t know what to do to avoid this error. I try to make the climbing sites of my database