Questions tagged [leaflet]
An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps
4,194 questions
0
votes
0
answers
25
views
Getting file paths for Leaflet webmap with photos to work
So I am trying to make a web map with leaflet in QGIS of site photos that I haven take for a project so that my colleagues can see where the photos were taken. I can successfully make the web map and ...
0
votes
0
answers
12
views
Leaflet zooming in causes TypeError: coordinates must be finite numbers
I'm using WMTS air image data from the public Dutch air image data service (called PDOK).
https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0?&request=GetCapabilities&service=wmts
I use Vue as ...
0
votes
1
answer
109
views
Leaflet popup does not display
I have added a custom control to display an About message. However, the popup does not display when I click the control. I have added some test code to use alert() and use the console.log() and both ...
1
vote
0
answers
81
views
Generate raster map tiles from an SVG file
What is the best way to generate raster map tiles from an SVG file?
I'd like to color the countries of an SVG world map such as this one from mapsvg.com/maps/world and use a script like gdal2tiles.py ...
0
votes
0
answers
22
views
Unable to transfer mapbox style to another account
Long story short, I have tried the advice in this Mapbox documentation: https://docs.mapbox.com/help/troubleshooting/transfer-styles-between-accounts/. I am account A, trying to hand over access to a ...
1
vote
1
answer
151
views
Statically hosted vector tiles
I'm interested in how to host vector tiles from static server. It's easy to serve png tiles with Leaflet, but I'm failing to do so with .geojson, .pbf or .mvt tiles. I'm trying to add to a map a ...
0
votes
1
answer
51
views
XML max file size or TRK number
I have an XML of more than 10 MB with 105 different tracks.
Itinéraires
Leaflet plots 84 tracks but not the 21 last ones.
Is there a file size or number of tracks limitation ?
1
vote
1
answer
132
views
Leaflet map in full screen mode doesn't show material autocomplete results
I've been working in a map using angular and leaflet to search enviromental proyects. When the map isn't in fullscreen mode it works well.
But when the leaflet map is in fullscreen mode the ...
2
votes
1
answer
498
views
PMTiles Layers Not Displaying in Leaflet
I cannot get a PMTiles layer to display in leaflet.
I have a PM tiles layer of roads created with tippecanoe, which I think is fine. It is roads in Ireland. It shows fine in QGIS and the PMtiles ...
0
votes
0
answers
100
views
Increasing font of scaleBar in Leaflet R
I would like to increase the font of my scale bar located on the topright side. I am a proficient R user but don't know much about JavaScript. I couldn't find an option to increase the font in ...
0
votes
0
answers
28
views
Building queries on GeoJSON in Leaflet [duplicate]
I see that GeoJSON datasets can be brought into Leaflet as layers (https://leafletjs.com/examples/layers-control/). But can I build queries on these datasets within Leaflet?
For example, could I build ...
2
votes
0
answers
109
views
Building queries on uploaded GeoJSON layers in Leaflet [closed]
This is a general question about functionality in Leaflet.
I see that GeoJSON datasets can be brought into Leaflet as layers (https://leafletjs.com/examples/layers-control/). But what possibilities ...
1
vote
0
answers
68
views
Adjusting zoom levels between different CRS
I'm building a Flutter app with a "Leaflet-like" map component (flutter_map). I have added the ability to switch between a few different map tile providers, including some that use the ...
1
vote
1
answer
91
views
On 'click' bound to L.popup does not work, but 'mouseover' does in Leaflet
I'm trying to update the contents of a popup when I click on it. I cannot get the click event to fire. The function does work, however, with the 'mouseout' event.
This does not work
let popup_options =...
1
vote
2
answers
275
views
Adding mouseover event information box to the top of a map using Leaflet?
I'm moving my code from the OS OpenSpace to the newer Leaflet. I've managed to get most of it working but I'm stumped with getting an information panel to show the mouse co-ordinates as Eastings/...