Skip to main content

Questions tagged [leaflet]

Leaflet is an open-source JavaScript library for mobile-friendly, cross-browser, interactive maps. For the R leaflet package, please use the r-leaflet tag.

0 votes
0 answers
5 views

Table Display based on filter selection and custom polyline click in Shiny

I have the following problem I am trying to solve. I have a shapefile with segments of varying lengths. For each segment, I have attributes including segment id, year, time period, and other variables ...
Krishnan's user avatar
  • 1,275
0 votes
1 answer
30 views

How can I establish attribution control on click event with Leaflet?

I have a Leaflet map with 2 layers. I would like to be able to trigger an action on $('.attributionLink').click(), but the click only registers when layer1 (default) is active. After changing active ...
pwalk's user avatar
  • 1
0 votes
0 answers
22 views

Leaflet : how to force using a specific tile server when zooming on known locations?

I'm using leaflet for displaying some maps. I know that my users will zoom in for some location. As you know, tiles are realtime calculated if zoom is high. I want to store pre calculated zoomed tiles ...
Linuxprocess's user avatar
1 vote
1 answer
19 views

Object created by L.GPX doesn't play nice with LayerGroups in Leaflet

I'm trying to make a layer control where I have two base layers and a bunch of imported GPX files. Here I first create my base layers, and just add them to a group. var Stadia_Outdoors = L....
Gard's user avatar
  • 23
1 vote
1 answer
32 views

Leafletjs map disappears after Livewire component refresh

I have a Livewire component and inside it there is a leaflet js map. It works fine until there is a validation error or component refresh happens. When that occurs, the map disappears from the page. ...
Pasindu Ruwandeniya's user avatar
0 votes
0 answers
25 views

Leaflet Map Tiles Disoriented When Deployed on EC2 Instance

I'm encountering an issue with Leaflet map tiles appearing disoriented when I deploy my application on an EC2 instance. The tiles load correctly when I run the app locally, but once it's deployed to ...
Anandu krishna v v's user avatar
0 votes
0 answers
14 views

Removing diamond-like empty shapes from Leaflet (base)maps

Dears, I am trying to find why I have the diamond-like empty spaces in my leaflet basemaps. Does anybody knows how to get rid of them? I am adding the screenshot here. I was trying also to set ...
Nail Abdulov's user avatar
1 vote
1 answer
40 views

Get Coords from LeafletMouseEvent

I am trying to get coords from a leaflet map. I tried using e.latlng but it only returns the coords i initialized the map with. Not sure what's not working honestly. Here is my code: private map: L....
Blue's user avatar
  • 11
0 votes
0 answers
19 views

Leaflet map with Flutter, filled polygon

I am trying to display a filled polygon. The polygon draws, but does not fill. This is my widget code, and from I have read, the color property should fill the polygon, but it doesn't. import 'package:...
StripyTiger's user avatar
0 votes
0 answers
36 views

Performance Issue with Polyline Rendering on React Leaflet Map

I am experiencing a performance issue with the polyline component of the Leaflet map library in React.js. I have a large dataset of traffic congestion data (approximately 5,000 to 10,000 polylines) ...
Furkan Şenol's user avatar
-2 votes
0 answers
40 views

Use Google Bicycle Layer in Leaflet [closed]

I have an existing website that uses leaflet extensively. I'm looking for a way to include the google bicycling layer in the map, but haven't found a way to do so. I tried the code from the bicycle ...
Hugh_Kelley's user avatar
  • 1,016
0 votes
0 answers
15 views

error when trying to display a multipolygon in react with leaflet

I have the following function // Función para unir los polígonos superpuestos export const unifyPolygons = (zones: Zone[]) => { const turfPolygons = zones.map(zone => turf.polygon([zone....
Fabian Beltran Rojas's user avatar
1 vote
0 answers
36 views

Binding multiple tooltips to a single Leaflet marker

My goal is to create a map with circle markers using the Leaflet map library and add text next to the marker. Each marker represents a location and for each location I want to show 4 numerical values ...
Jáchym Brzezina's user avatar
0 votes
0 answers
17 views

min is undefined in leaflet.src.js

I'm trying to load geojson layers in leaflet map using "leaflet-vectorgrid" plugin. but when ever i hover or click over the loaded layers, we'll get the error that says "min is ...
Amirhossein Barzegar's user avatar
0 votes
0 answers
22 views

How to properly zoom and update OpenStreetMap tiles on my JS Maps

When I launch the file everything works fine and the mouse movements are correct however the zoom is catastrophic and it does not zoom/refresh the next tiles of OpenStreetMap class CustomMap { ...
SearchArea France's user avatar

15 30 50 per page
1
2 3 4 5
932