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.
leaflet
13,966
questions
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 ...
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 ...
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 ...
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....
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.
...
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 ...
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 ...
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....
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:...
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) ...
-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 ...
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....
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 ...
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 ...
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 {
...