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,865
questions
0
votes
0
answers
8
views
Extract leaflet marker coordinates by web scraping
I am trying to get the coordinates of a marker displayed on a leaflet map with my web scraper. However, I am unable to access these values. When exploring the page in my console, I stumbled on #...
0
votes
0
answers
17
views
Leaflet - SVGs in Custom Pane not updating position
I am using d3.js to draw svgs on a basic map in Leaflet. I want my custom pane lay on top. I have created a pane and it works just fine.
// draw overlay in custom pane
function drawBorderOverlay() {
...
0
votes
0
answers
15
views
Determine whether a point is in a boundary or not
I'm trying to solve a problem about Point and Boundary.
My problem:
I setup a Map where user can tap to pin a marker, whenever user pin a marker, I will send that marker LatLng server to check ...
0
votes
0
answers
12
views
Is there a way to have leaflet map dynamically change to the size of the viewable tab
I am trying to create code that a map is loaded full screen and fills the whole screen with a white border on the outside and has no overlap, I searched google and I could find anything on the ...
0
votes
0
answers
20
views
Is there a method to validate in laravel backend that a newly drawn polygon with leaflet maps doesn't intersect with a previously saved polygon?
I am using leaflet maps to draw polygons , I save only one polygon each time , coordinates data are saved in mongodb , here is how one saved polygon data looks like in database:
{
"_id": {
...
0
votes
1
answer
42
views
how do i get different map types on flutter
I am using fluttermaps to get the basic osm(open street map)layer to appear. it works but I am trying to add more options. Does anyone have any tips on where to go.
I have this so far and its working ...
0
votes
0
answers
20
views
How to maintain area of leaflet map visible as visible container area changes?
I have a leaflet map I am displaying. At some point I know the latlngbounds of the visible area of the map in the map container.
If the user resizes the container I want to pan/zoom so that that area ...
0
votes
0
answers
11
views
Custom TileLayer Map - Leaflet React
I'm using Leaflet React, and my question is this.
How can I make sure that my TileLayer is not limited to -180/180 in X and Y?
For example, I have some rectangular maps, and some square ones. For the ...
0
votes
0
answers
28
views
Improving Polyline Accuracy and Display in Blazor WebAssembly with Leaflet.js Using MAUI-Captured Data
I'm developing a user tracking application using MAUI for capturing latitude and longitude data. This data is then displayed as a polyline using Leaflet.js in a Blazor WebAssembly application. However,...
0
votes
1
answer
47
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
25
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
24
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
38
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
37
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
19
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 ...