Category "leaflet"

Javascript: Correct syntax for making editable custom properties (on click, toggle colour of Leaflet GeoJSON object)

I've written the following javascript code using leaflet to make multiple red polylines with each having property called "active" which starts as true. for

How can I get my Modal in Leaflet to appear in front of the map?

I am using leaflet to display a map of Jamaica which should prompt a modal to pop up once the user clicks on one of the parishes (states). Currently the modal a

how to use "leaflet-buffer" in react-leaflet?

I want to buffer the shapes I drew on the react-leaflet. But I can't find any npm library to react like "leaflet-buffer". Please help me.

Error: export 'control' (imported as 'L') was not found in '@raruto/leaflet-elevation' (module has no exports)

I have a angular application and need to use the custom leaflet package: https://github.com/Raruto/leaflet-elevation I am trying to use this in my application.

Rshiny app - overwriting and publishing app

I am having trouble updating a rshiny app on shinyapps.io The problem seems to be with the directory. This is what I have now: crime<-read.xlsx("wmsp_lat.xls

Leaflet - Allow dragging outside of map

I recently set up a non geographical map with leaflet using an image layer. This obviously is a stupid decision working with 'bigger' maps due to high memory us

Angular/Leaflet/OpenStreetMap - clicking on pin for pop-up throws error about an already defined service variable, doesn't display binded pop-up

The error appears in the browser, when I click on any pin. No pop-up is displayed, nothing happens, just the error in the console. Below you will find the comp

How to create a route between markers?

I would like to create a map (preferably something like leaflet) with markers and a route (chosen by coordinates that I give) between these markers. To be more

Cannot access Leaflet objects with Vue3-leaflet

I am trying to access flyTo or panTo from leaflet but somehow it is stuck with the error Uncaught TypeError: Cannot read property 'flyTo' of null Any pointers a

Uncaught Error: Invalid hook call. ReactJs

I am relatively new to react and I am trying to render a leaflet map on my site but I am currently getting an Invalid Hook call error. Any information would be

Uncaught TypeError: this._map is null (Vue.js 3, Leaflet)

I am getting a strange error from Leaflet in a Vue.js project (version 3). If I close a popup and zoom in/out, this error occurs on Firefox: Uncaught TypeError

After Java update to the version 1.8.0_301 JavaFX WebView with Leaflet.Draw.Circle, Leaflet.Edit.Circle does not work as well as OSM is not draggable

I am using JavaFX Webview with Leaflet library to render OSM tiles. I am running into issues with Circles and Polygons, Marker and with some functions as Editt

Floating points (wfs) on map using geojson in leaflet

I am trying to get geojson from geoserver and put it on the map. It seems to import geojson, but it is not displayed on the map, and I do not know what the prob

Floating points (wfs) on map using geojson in leaflet

I am trying to get geojson from geoserver and put it on the map. It seems to import geojson, but it is not displayed on the map, and I do not know what the prob

possible to implement two sequential flyTo in leaflet R

I would like to create a Leaflet Map which renders at a default location, at a zoom level of 4, and then when the user clicks the go button, pans from location

Set map id using folium?

I m using folium (Django/Python), I create a map: def create_map(): m = folium.Map(location=[9.934739, -84.087502], zoom_start=7 ) ..... folium creates

Update/Reload specific tile in leaflet dynamicly

If my server tells the clients when and what tile to reload/update, how can reload/update the tile sent from the server? I'm using the L.CRS.Simple CRS. And I h

Is there a way to obtain layer name from onEachFeature on react leaflet?

I have tried to found something inside feature and layer methods and properties (these are the params onEachFeature returns) but the documentation doesn´t

Navbar fixed left - Bootstrap

I am trying to make navbar in bootstrap to be fixed left, like on this link. Anyway, it is working, but when I add block content of the leaflet map, my navbar i

How to fix error "Failed to compile : ./node_modules/@react-leaflet/core/esm/path.js 10:41 Module parse failed: Unexpected token (10:41)"

I am trying to create a react-typescript app along with leaflet. I used the command, npm install leaflet react-leaflet @types/react @types/leaflet --save to ins