Skip to main content

Questions tagged [leaflet-plugins]

A set of plugins for Leaflet

1 vote
0 answers
31 views

Leaflet Mini Map Not Displaying with Esri Basemaps [closed]

I am trying to add a mini map to my Leaflet map that uses Esri basemaps. However, the mini map is not displaying correctly. I have included the necessary libraries and followed the setup instructions, ...
Rony Golder's user avatar
0 votes
1 answer
68 views

Leaflet markercluster: getting the zoom level at which a specific marker is no longer clustered?

I'm using Leaflet markercluster in an app. I have an endpoint where a specific marker is selected (eg. ../marker/12); so the maps centers on that marker and displays its popup when the page loads. But ...
gordie's user avatar
  • 274
1 vote
1 answer
76 views

Make Leaflet geocoder search marker open popup containing GeoJSON data

The following JSFiddle uses Leaflet and leaflet geocoder control search plugin. Code below HTML: <div id="map"></div> CSS: #map { height: 100%; position: ...
Discover's user avatar
-1 votes
1 answer
54 views

Seeking Leaflet printing library that is flexible (not browser print)

I'm a junior developer and I've been tasked with updating the leaflet part of the website. Do you know a good printing library where I could just export the map shown on the screen and manipulate it a ...
François Poulin's user avatar
1 vote
1 answer
92 views

Install Leaflet plugins in Python based environment for web GIS building purpose

I am in the middle progress of building a webgis that utilize python Flask as backend and Leaflet to build the maps. I can still manage until the step where I implemented the vanilla Leaflet and just ...
duns's user avatar
  • 23
1 vote
1 answer
80 views

Get events fired for all objects in a protobuf layer when clicked on in Leaflet.VectorGrid?

I am using Leaflet.VectorGrid to display a Vector Tiles layer that is loaded from pbf tiles from a tile server. <html> <head> <title>Vector Map</title> <body> <...
user3147507's user avatar
0 votes
1 answer
123 views

Displaying layer marker only after feature found with search plugin in Leaflet

I have been playing with different Leaflet plugins. One I am especially interested in is the Leaflet search plugin (https://github.com/stefanocudini/leaflet-search). I have been able to implement it ...
Bfox's user avatar
  • 1
3 votes
2 answers
506 views

Create wider selection area to select lines on map using LeafletJS

When there are thin lines on the map, it is very difficult to click them with the mouse cursor. So is there any option to wider the selection area for lines in LeafletJS, without increasing the line ...
Kishor's user avatar
  • 536
0 votes
1 answer
205 views

MarkerCluster element popup does not appear when clicking a spiderfy element, instead unspiderfy is triggered in Leaflet

I have created a custom popup that appears whenever an element on my map is clicked. However, when spiderfy happens (when a marker cluster is clicked and the map cannot zoom to a level that would ...
ysi_d's user avatar
  • 23
1 vote
0 answers
379 views

MarkerCluster does not zoom when cluster clicked if it cannot reach a zoom level that will separate elements. How can I check for this? [closed]

I have a map with a maximum zoom level of 18. It is possible to have data points that are so close together that they are still clustered at zoom 18, and it is also possible to have multiple data ...
ysi_d's user avatar
  • 23
1 vote
1 answer
393 views

Clipping raster layer created by Georaster plugin in Leaflet?

I want to clip a raster layer inside Leaflet. I want it to clip by a GeoJSON. I couldn't find an effective method to do it. The below code is what I have done so far. Can anyone suggest a method? var ...
Hasitha Bandara's user avatar
1 vote
0 answers
113 views

Loading local GeoJSON file into Leaflet [closed]

I have an issue with loading a local GeoJSON file into a simple Leaflet map. I followed the answer from Loading external GeoJSON file into Leaflet map?: I included the path to the leaflet.ajax.min.js ...
Pawel's user avatar
  • 408
3 votes
1 answer
660 views

Leaflet KML imported with Omnivore filled only with default blue and not the color set in KML file

I have a KML file which I need to import in a map using Leaflet. If I use leaflet-kml I can see all polygons with color set from KML file. But because I need to show only one polygon extracted for ...
user6634742's user avatar
2 votes
1 answer
214 views

Show only one polygon from KML loaded with Leaflet

I'm using Leaflet with Leaflet-KML plugin to show a KML file with multiple polygons. In this KML file there are 125 polygons. I want to pick only one to show on the map. The choice is made directly ...
user6634742's user avatar
1 vote
1 answer
235 views

Leaflet shapefile plugin doesn't show the shapefile layer

I'm trying to use the Leaflet Shapefile plugin (https://github.com/calvinmetcalf/leaflet.shapefile). A demo page also shows the plugin's output (http://calvinmetcalf.github.io/leaflet.shapefile/). I ...
Melanie's user avatar
  • 159

15 30 50 per page
1
2 3 4 5
7