Category "leaflet"

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

Embedding a Leaflet map on a Blazor SPA

How to Embed a Leaflet map on a Blazor SPA, using JSInterop, what objects should be defined, and how to pass data that represents the location clicked on the ma

How can I use external buttons instead of the default Layers Control?

Instead of Leaflet default Layers Control with checkbox, I want to use an <a> tag, when I click on it, it shows all associated layers to that button. I ha

Custom SRID in Django-Leaflet

I'm having trouble specifying a custom SRID with django-leaflet. The documentation on projections isn't very detailed, and mentions only briefly: By defaul

How to display 2 values on leaflet control search result(tooltip)

i'm using leaflet-control-search to search for markers.http://labs.easyblog.it/maps/leaflet-search/examples/outside.html markers are stored in json like this [

How can I insert interactive content into Wordpress CMS?

I'm trying to insert interactive, mobile responsive graphs and charts into WordPress. My original methodology was to use Altair/Folium to generate a HTML render

Mapbox studio - png labels layer - transparency showing up as black

I have created some custom styles in mapbox studio. They are essentially just the mapbox outdoors style and the mabpox satellite style, each customized, separa

Adding a leaflet in a precompile vignette

I'm maintaining R code in my company that is use by multiple colleagues. I decided to convert my code into a package to make it simpler to share, maintain and