Questions tagged [leaflet]

An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps

Filter by
Sorted by
Tagged with
1
vote
1answer
29 views

Leaflet and tiler for R - can't get the correct tiles for displaying in Leaflet (wrong reference systeme or something)

I have got an issue with tiler (https://github.com/ropensci/tiler). I am setting up a webapplication and want to convert .grd files to tiles that can be read by Leaflet. This example can be easily ...
1
vote
0answers
67 views

Coordinates not consistently reversed (lon,lat interpreted as lat,lon) in Leaflet

I have a polygon layer fed from GeoDjango + PostGIS as GeoJSON. Its original CRS is 3908. It's being drawn as a GeoJSON layer in Leaflet in CRS 4326 (I figure it is transformed on the fly by Django ...
0
votes
1answer
60 views

Unable to Load ArcGIS vector tiles to mapbox-gl-leaflet

So basically I am using the mapbox-gl-leaflet plugin to render mapbox vector tiles on leaflet map. Now I am trying to load ArcGIS vector tiles in the plugin but the vector tile is not rendering on the ...
2
votes
1answer
137 views

Can leaflet be used to show 360° panoramic images?

Google's Marzipano makes the task of creating VR tours extremely simple.It is possible to take the Marzipano output and customize it - to an extent. However, Leaflet with its pleathora of plugins and ...
1
vote
1answer
34 views

L.divIcon and aria-label attribute

I have three type of layer and for each layer a different marker, which I styled in CSS. The problem now is, that if someone uses VoiceOver or something like this, it's reading the 'html'. In my case, ...
0
votes
1answer
86 views

Programmatic way of accessing mapbox tileset from leaflet WITHOUT studio

I have a R shiny app that successfully uses leaflet to interact with a custom mapbox studio style. mapbox_url = "https://api.mapbox.com/styles/v1/bweinstein/ck94nmzn20an31imrz6ffplun/tiles/256/{z}...
1
vote
0answers
16 views

GetFeatureInfo with leaflet.extras2 and Shiny

I am building an R Shiny App that utilizes the following WMS. However, the GetFeatureInfo capabilities for click-enabled popup (leaflet.extras2 functionality) returns a summary of the GetCapabilities. ...
1
vote
1answer
71 views

Filtering on multiple features with the use of L.control.layers so that the checkboxes are within the map

Working with leaflet.js. I'm trying to incorporate multiple filters in L.control.layers. I have a working layer control for changing basemaps and layers of markers with different years, but I would ...
1
vote
1answer
26 views

Create a marker in the bottom right corner of the map

I try to set a marker when on the bottom right of my map no matter which zoom level i have, similar to a control where i can set the position to 'bottomright'. What i want to achieve is to show a ...
1
vote
1answer
52 views

Leaflet GeoJSON Polygon Label Remaining in Frame when Zooming

I have a polygon layer being loaded into Leaflet in GeoJson format. When using the code below I'm able to get labels for each feature to appear at the center but they remain fixed there. I'd like for ...
1
vote
1answer
23 views

Getting polylines back from leaflet when using esri-leaflet featureLayer

I have a leaflet map that uses esri-leaflet to display a feature layer created for arcgis that is a number of paths. These paths are created correctly and I can see them on the map, but they aren't ...
0
votes
0answers
71 views

Coordinates must be finite numbers error on map.getBounds()

I get the following error when trying to get a getBounds for my map. *proj4-src.js:1849 Uncaught TypeError: coordinates must be finite numbers at checkCoord (proj4-src.js:1849) at checkSanity (...
0
votes
1answer
43 views

The position and size of my Tile Map is incorrect when it is displayed in React-Leaflet

I converted the GeoTIFF file to a tiles map. I'd like to display it in react-leaflet, but the size and position are not right. What can I do to fix it? This is condition when displayed. (overlaid on ...
0
votes
0answers
38 views

Turnoff layer not selected in form element Leaflet

I'm super stuck, pulling my hair out. I have graduated symbol map in leaflet of wildlife camera rates of detection. I have a form element that selects all species, bobcats, coyotes o grey foxes. All ...
1
vote
1answer
27 views

How can i use Multiple filter in wfst leaflet?

I'm using wfst plugin in leaflet. I can send request just by one filter and get response correctly like this: var layer = new L.WFS({ url: 'http://localhost:8080/geoserver/ows', ...
1
vote
1answer
65 views

Combine leaflet-tilelayer-mask and Leaflet.TileLayer.ColorFilter plugins

I am trying to color my tileLayer mask differently and I found the colorFilter plugin. I can't seem to figure how to use the color filter tile created in my mask tileLayer. let map = L.map("map&...
0
votes
1answer
35 views

Removing previous layer when new layer is select from drop-down menu?

I have a drop-down with some options in it, after selecting one option and button clicking I get the text and my shapefile from the GeoServer which is added to the map. So when I click on the first ...
0
votes
0answers
29 views

Using WMS getFeatureInfo() in shiny and leaflet

I like to get the getFeatureInfo by a click like it is mentioned in this post so that the information is shown in a popup window. I tried trevis solution but it is not working for me. If I use addWMS()...
1
vote
1answer
32 views

Set center coordinate for Leaflet-tilelayer-mask layer

I am working with this Leaflet plugin: Leaflet-tilelayer-mask and I want to specify the mask center coordinate as opposed to it picking the base map's center coordinate. Tips on how to achieve this? ...
1
vote
1answer
45 views

Leaflet: IE11 freezes when showing polylines

I am a newbie in leaflet programming, and I have an error on showing polygons on IE 11. My page is very simple and works on Chrome and FireFox. I just draw a point and a polyline. Expected result is ...
1
vote
1answer
54 views

GeoJSON file content not display properly in Leaflet

I am new to Leaflet. Am facing one issue when try to display GeoJSON file in Leaflet. Issue: Actually some GeoJSON file only am facing this problem. In my knowledge coordinates are in different ...
0
votes
1answer
76 views

QGIS Server: GetFeatureInfo over WMS layer returns empty sets

I am developing a webmap application using Leaflet + QGIS Server 3.4 on a Debian platform. I have my HTML/Leaflet page ready, based on this code. Basically, the user has the choice between several ...
1
vote
0answers
41 views

Dynamically-generated heatmap WMS tiles on GeoServer/Leaflet displays wrong [duplicate]

I am using a GeoServer to calculate dynamically a heatmap on points coming from a postgresdatabase with the SLD style presented there : https://docs.geoserver.org/stable/en/user/styling/sld/extensions/...
0
votes
1answer
50 views

Mapbox Geocoder with a Leaflet map. Zoom to result, how?

I have a Lealfet map together with the Mapbox geocoder outside the map. The Geocoder and the map works. But i need to zoom to the result from the geocoder. Some code: var map = L.map('...
0
votes
0answers
21 views

SQL Server to generate points on map for web

These are my components: SQL Server 2016 with R-in-database. smb-share on a subdirectory underneath root directory of an IIS with enough rights to let R-in-database write files. Tables in ...
0
votes
2answers
58 views

L.control features showing up only below raster layers

I've been studying Leaflet and, when I was trying out some plugins, this issue showed up. Pop-ups and markers works fine, but the line (perimeter) won't show up unless I turn off the raster layers. ...
1
vote
1answer
76 views

Export current user location from locate control using button in Leaflet

I am preparing a mobile application, to determine the location of natural and cultural goods along a route that I have previously uploaded on Leaflet maps. I use the "leaflet locate control" plugin to ...
1
vote
0answers
23 views

Animation stopped working [closed]

We have an animation built with leaflet that was working until about a month ago. Now, the play button is just like an image, and nothing happens when I hover or click on it. In the inspect element ...
0
votes
0answers
85 views

Leaflet zoom out does not respect zoomDelta all the time

I have a leaflet map (version 1.6.0) with zoom control. It works correctly most of the time, but what I noticed is that on zoom out the zoom delta is NOT always consistent. To clarify, this happens ...
1
vote
0answers
45 views

Highlight polygon on mouse over in Leaflet?

I am doing a map on Leaflet and I would like to know how to put my polygons highlighted visually in some way when they are covered with a mouse a bit like that: http://www.gistechsolutions.com/leaflet/...
0
votes
0answers
78 views

Removing the Leaflet draw toolbar when added as Leaflet control

I add a draw-toolbar (I'm using the my own version from the example "Disabling a toolbar item") drawnItems = new L.FeatureGroup(); map.addLayer(drawnItems); var drawControl = new L.Control.Draw({ ...
0
votes
0answers
64 views

Adding values to heatmap in Leaflet?

I followed this methode https://geomappando.com/2016/11/08/come-realizzare-una-heatmap-con-leafletjs/ to get a heatmap from my GeoJSON file. But, I got it without having the value field included. ...
1
vote
1answer
90 views

Leaflet.markercluster, markerClusterGroup into another markerClusterGroup [closed]

I would like to add markerClusterGroup into another markerClusterGroup. I tried but without success, no marker are displayed. Why? Because I would like to separate markerClusterGroup for multiple ...
0
votes
1answer
81 views

moveToLocation and open Marker-Popup automatically

For reference: I use L.Control.Search to search for my Marker. It's this Plugin: https://github.com/stefanocudini/leaflet-search/blob/master/examples/multiple-layers.html And this is the working ...
1
vote
0answers
31 views

Finding the intersection of an array of markers across multiple layer groups Leaflet

I have two challenges related to this. The first(1) is that I have created a bunch of variables that store the data needed for my markers and I cannot reliably add markers to layer groups when storing ...
0
votes
0answers
21 views

Wrong position of tiles when using Proj4Leaflet for a tiled raster layer

Using Leaflet I am trying to display a tiled raster layer described at the following url : https://mpt.svp.sk/server/rest/services/podkladove_mapy/orto_2019_12v/MapServer I understood that the layer ...
-1
votes
1answer
38 views

Is there a way to reform this so that I get the INTERSECTION of checked layer groups? [closed]

I am doing a fairly complex thing for my newbie to Leaflet, JavaScript, and Stack Exchange brain. I am building a Leaflet map that displays parks by specific criteria. I am using the default Leaflet ...
3
votes
1answer
69 views

Turf intersect doesn't always work with polygons

I have a GeoJSON of two obvious colliding polygons but turf.intersect doesn't seem to detect it. Here the GeoJSON: { "type": "FeatureCollection", "name": "invalid_import", "features": [ ...
0
votes
0answers
27 views

Leaflet Easyprint alternative with MapboxGL

I have a logo (logoContainer) on top of my map, that i need to include in the print: mapboxgl.accessToken = '<ACCESS TOKEN>';; var map = new mapboxgl.Map({ container: 'map'...
0
votes
1answer
49 views

Leaflet request non-existing tiles despite maxNativeZoom being set

I have this leaflet map with a tileLayer where maxNativeZoom is not working for some reason. If I zoom in further than the zoom level it has tiles for, and then try to pan, it requests non-existing ...
0
votes
1answer
33 views

Cannot load tiles from Mapbox using leaflet.js

I am a new user and I can't seem to get the tiles on the map. var mymap = L.map('mapid').setView([51.512, -0.104], 1); L.tileLayer('https://api.mapbox.com/styles/v1/mapbox/{mapbox.mapbox-streets-v8}/...
1
vote
1answer
22 views

Duplicate markers in multiple layer groups not displaying

I have a map with a bunch of markers and some layer groups based on attributes for those markers. I made layer groups for each attribute and some markers appear in multiple layer groups. When I toggle ...
0
votes
1answer
33 views

GeoJSON data disappears when using Marker cluster plugin [closed]

Here is the code I used to display my GeoJSON data on a leaflet map using HTML, CSS and JavaScript. Through the following code I wanted to load my point data on the map and form clusters of it using ...
0
votes
0answers
24 views

Disable map click when clicking on a polyline in Leaflet and vue2-leaflet

I defined addMarker and polylineClick functions. addMarker is called when clicking on the map and polylineClick is called when clicking on a polyline. But when I click on a polyline, map click event ...
1
vote
1answer
44 views

Cannot get transparent tiles when using gdal2tiles on a GeoTIFF

I have this GeoTIFF generated through UAV mapping. It has 4 bands: red, green, blue and alpha. I've been trying to use gdal2tiles to use this geotiff as a basemap on a Leaflet project. The thing is I ...
1
vote
2answers
64 views

Leaflet MarkerCluster and Esri Leaflet Cluster - custom marker data from feature data not count of markers in the cluster

Is it possible to sum the data from the feature data in a esri feature layour to display on a clustermarker. The default value is the count of the markers contained in the cluster, but I want it to ...
1
vote
1answer
74 views

Select only the feature that overlapses its correspondant in another layer - Leaflet, qgis2web

I have 2 identical layers overlapping, each containing identical FeatureCollection values. Only one of them is added into the map. Is it possible that when clicking on a specific feature of the ...
0
votes
1answer
76 views

Coordinate System Mismatch In Folium

I'm trying to get familiar with Folium library in Python. I wanted to make a web-map of Turkey. Framework uses EPSG:3857 Web Mercator CRS as default. I tried to use approximate coordinates at the ...
1
vote
0answers
37 views

Fitting tooltip completely inside a feature else removing it in Leaflet

I have been using tooltips as a form of labeling my polygons in Leaflet. The problem I'm not able to solve is to remove the labels from the view that doesn't fit completely inside the feature. ...
0
votes
1answer
351 views

What are Folium style_function parameters

I'm trying to do a uniform style for each polygon, but I want to know further about what I can do with Python library Folium Style_function. What can I put in the style variable? Where are the ...

1
2
3 4 5
67