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

learn more… | top users | synonyms (1)

1
vote
1answer
44 views

Problem with Leaflet Control Layers using Vector Layers

I'd like to add a Vector Layer and configure it in a Leaflet Map with Leaflet Control Layers. The code is ... <!DOCTYPE html> <html> <head> ...
0
votes
1answer
32 views

Problem with missing tiles in a WMS Service Layer on Leaflet Map

When we load a WMS service in our Leaflet maps, we encountered tiles that do not show. You can see this happening on the following Plunker if you zoom in and pan to the left or right. ...
0
votes
1answer
32 views

Is there anyway to combine a static geojson and data from database then display it in leaflet?

I do have a web map application that can load geojson then display it on leaflet map, however I encountered unresponsive script whenever I refresh my page due to big size of geojson. Is there anyway ...
0
votes
1answer
33 views

CartoDB Core with Leaflet

I just recently experimented with CartoDB. I have an existing Leaflet Map with lots of Plugins and dependencies. Just adding the CartoDB.js does not work (I think there is a version conflict, but I am ...
0
votes
1answer
50 views

Leaflet - Load markers in the current map - dynamically

I am looking for a marker plugin for leaflet that allows loading of markers dynamically, according to the current view. E.g. I want to add OSM POIs to a world-wide map. Obviously loading all at once ...
1
vote
1answer
64 views

Folium and MarkerCluster?

I'm trying to use Folium but am having difficulty adding multiple points to a MarkerCluster in one fell swoop. Documentation is... sparse, so I'm not sure how to proceed. This recreates the problem ...
0
votes
1answer
51 views

Add and later access Leaflet.draw polyline index and a new property value

I am using the Leaflet draw plugin located at https://github.com/Leaflet/Leaflet.draw and what I want to do is when a person draws a new polyline to print in the console the index number of that ...
0
votes
1answer
53 views

How to display geotagged photos from my domain in leaflet

I already asked a question similar to this then I used a plugin of displaying geotagged photos in leaflet from (Google+ photos|Instagram / CartoDB|Norvegiana ) photos in leaflet This plugin gets ...
0
votes
1answer
61 views

dynamicMapLayer esri-leaflet does not return properties of point data

I am using a dynamicMapLayer with point data. If I bind a custom popup to this layer, it does not return the properties for the point. https://plnkr.co/16IooEUXpoo9fvqlfnhU If I use polygon data ...
2
votes
1answer
36 views

Add Links to Leaflet Choropleth Map

I'm making a choropleth map based on this example I would like to add links to the map, so that when a user clicks on a state they will be taken to a specific page. For example, a user clicks on ...
0
votes
1answer
48 views

Leaflet Basemap and Overlay Display

When running this why does the open street layer not show up as the base layer by default? and why does the precipitation layer come up as already checked to display? None of the other overlays ...
0
votes
1answer
41 views

Mapillary Vector Tiles are not shown at every zoom levels in a Leaflet map

I'm trying to load the Mapillary vector tiles layer in a Leaflet map. I'm using Leaflet.MapboxVectorTile (ref. https://github.com/SpatialServer/Leaflet.MapboxVectorTile). Here you are my code ... ...
2
votes
2answers
58 views

Esri leaflet feature layer toggle question

I have a feature layer that I am trying to toggle on / off via click. The problem I am having is that if I toggle the layer on and then off, it does not update to the screen unless I zoom in / out and ...
1
vote
1answer
47 views

Add DEM layer to Leaflet

I want to add a digital elevation model (DEM) layer to my leaflet map and access the height data through javascript, i.e. I cannot use .png files or qgis2webplugin but rather .tif or some compressed ...
0
votes
2answers
74 views

How to load a vector tile layer in a Leaflet map?

I need to load a vector tile layer in a Leaflet map. The vector tile is the vector tile layer about Mapillary sequences (look at https://a.mapillary.com/#vector-tiles ...), and the tile URL pattern ...
0
votes
0answers
36 views

Cannot draw two layers at once using Leaflet

I have two map layers that I want to show at once: One is the full data, the other is a filtered version of the data. The map will draw with each of these layers, but not with both at the same time. ...
2
votes
1answer
75 views

Leaflet map draggable marker events

Everytime I click on the map I create a draggable marker with a drag function. It works great, however everytime I release the mouse after I dragged some marker, the click event of the map is ...
0
votes
1answer
59 views

Filtering GeoJSON data to include in Leaflet map

I am trying to filter through my geojson polygons and get all data entries with a specific attribute. I have a layer of polygons describing parks around the city parks.json. I want the user to click ...
1
vote
1answer
29 views

Leaflet: Panes and Popups

I have a leaflet map with a circleMarker layer that has a popup. This works as expected. dotLayer = new L.geoJson(dots, { pointToLayer: function (feature, latlng) { return ...
0
votes
1answer
26 views

How to add Leaflet controls in an outer div

What is wrong with this code ? var mapbuttons_div = L.DomUtil.create('div', 'mapbuttons leaflet-bar leaflet-control'); var zoom = L.control.zoom( { position: 'topleft' } ); ...
2
votes
0answers
36 views

how to load raster image in leaflet? [closed]

I want to load a raster base layer in leaflet because the base layer usually needs an internet connection I want to load the raster offline .
1
vote
1answer
36 views

KML google in Leaflet

I know that GeoJson is suported in leaflet but how about kml ? is there any plugin for reading kml data in leaflet?
1
vote
1answer
42 views

Mapbox free billing period

I am trying to use mapbox instead of leaflet to allow client to modify in the map if needed because I found in mapbox studio a friendly interface for modifying the map . Is the free period in mapbox ...
2
votes
0answers
46 views

Draw raster on top of a Leaflet map

I want to implement a raster layer on top of a Leaflet map that includes the following functionalities: Digital Elevation Model (DEM) terrain height included in each raster cell GPS-Track (I use ...
4
votes
1answer
65 views

Better (faster) way to join a csv to a geojson in Leaflet?

My goal: Store the attributes of a geojson in a csv file Allow a non-GIS user to edit a cloud-hosted csv file which then updates a webmap Have the web map be a static app with no GIS/PostGIS/SQL etc ...
1
vote
0answers
30 views

Load a raster file directly in leaflet

Is it possible to load a raster file (e.g. geotiff or erdas img) directly into a Leaflet map? If so, can you guide me to the correct documentation or method to do this? I am trying to do this with the ...
1
vote
0answers
35 views

MarkerCluster OR SuperCluster OR Vector OR [closed]

currently I'm working with many GeoJSON-Point-Objects. For my testing I use Leaflet with plugins (MarkerCluster, SuperCluster) and to compare them I tried OpenLayes with a cluster-vector solution. ...
0
votes
1answer
61 views

Hide and show markers in a Leaflet map using zoomend [closed]

How to hide and show markers in a Leaflet map using zoomend. Example jsfiddle.
2
votes
0answers
24 views

Filter data from WFS request in Leaflet

In the past I have used OpenLayers in order to make WFS requests to geoserver and show features on a map. I have also used WFS rules in order to filter the data based on specific values. Now I am ...
0
votes
1answer
32 views

Leaflet control layer update

I am using this example to setup a control layer. http://leafletjs.com/examples/layers-control.html L.control.layers(baseMaps, overlayMaps).addTo(map); How do I just update overlayMaps with latest ...
1
vote
1answer
66 views

CQL filter not displaying in leaflet.js

I have a CQL filter that only displays a certain number of points, however when I try to apply the CQL to my existing leaflet map through the options for a layer nothing displays. No errors are thrown ...
1
vote
1answer
65 views

Leaflet GeoJSON with projected coordinates (3857)

I am trying to get a GeoJSON with projected coordinates to show in Leaflet. I have no problems loading GeoJSON with lat/lng (EPSG:4326). Here is a fiddle where I load the GeoJSON with unprojected ...
1
vote
0answers
27 views

Changing layer color with a button click

I am trying to change the color of my map layer when filter buttons are selected. So, the goal is: the user sees all of the data in one color. Then, when they click on a filter button, only a subset ...
0
votes
1answer
22 views

Add WFS layer(json) in leaflet using leaflet layer tree control

I'm using the layer tree control to manage the display of layers. When I add WMS services, it works fine. But when I add WFS , this is not loaded. I'm using the leaflet layer tree plugin code and ...
0
votes
1answer
19 views

How to make a WMS GetFeatureInfo request in Leaflet?

I am trying to make a WMS GetFeatureInfo request using Leaflet. I can not find something in the documentation to describe this process. Can you please provide with an example demostraing how to do ...
0
votes
1answer
38 views

Use of Leaflet plugins in 'Leaflet for R' to connect with ArcGIS online

I was wondering if it is possible to use the plugins for the normal (non-R) version of Leaflet, and if, how I can do that. reason I need to do that is, that some of the data I need to show are hosted ...
0
votes
1answer
32 views

Accessing HTML using jQuery within LeafletJS popup.

So I want to add some HTML code to a Leaflet popup, but I also want to be able to to perform some jQuery functions when this HTML is clicked, like so: .bindPopup( "<button id='clickHere'> ...
0
votes
0answers
10 views

Stop leaflet popup on nodata areas

I'm working with leaflet.js and some wms services. I've been playing around with L.TileLayer.BetterWMS.js but am getting the same problem with the standard leaflet.wms.js plugin. I would like to ...
0
votes
0answers
34 views

How to return output of WMS/GetMap (Geoserver) request through an API call?

I am working on a web mapping application which is build on Leaflet and Angular JSP libraries and relies on ArcGIS Map Services. We get token from ArcGIS's gettoken API through a WebAPI and that token ...
1
vote
0answers
29 views

Leaflet Mobile Not Working

Trying to get this to work on a mobile device. Works fine on a computer. Anybody have any suggestions as to why it wont show up on my phone? </body></html> ...
0
votes
2answers
38 views

Leaflet: Are Bing Maps tiles exempt from restriction to use only with Bing Maps?

Leaflet has a plugin that can fetch Bing Maps tiles. However, I see in the Bing Maps terms of use the following prohibition: 8.2 d) Use Content, including geocodes, other than via an ...
0
votes
1answer
42 views

How can i an add image overlay depending on the options in the polygon properties in a leaflet map?

I have a multi-polygon geojson file ( mapInfo ) that has one of the properties named "field_hazards". The hazards include "gale/storm, heavy rain, thunderstorm and Freezing rain "How can i an add ...
0
votes
1answer
59 views

Text + Chart inside pop up window in Javascript

A similar question had been posted in this thread : Chart inside pop up window in Javascript I'm trying to do the same, but i would like to add others things in the popup (like text, feature ...
0
votes
2answers
51 views

Layer not staying on top of all other layers

I am trying to keep a specific layer named popDensity on top of all the other layers on my map despite what other layers I may click in the layers control. I am using the Leaflet overlayadd event to ...
0
votes
1answer
29 views

LeafletJS: How to hide legend when layer is clicked?

I am trying to show/hide a legend when a certain overlay is clicked, but can't seem to get the legend to hide when the overlay is unclicked. Here's my sample setup: //establish the data var ...
2
votes
0answers
47 views

How to instantiate a new map with proj4leaflet projections from a Bootstrap dropdown menu

I'm currently working on a Leaflet website that will be able to display GPS-Tracks with different projections. Now I'm trying to implement a dropdown menu based on Bootstrap, where I can set different ...
1
vote
1answer
68 views

LeafLetjs: GeoJSON invalid object error

I am getting GeoJSON data from postgresql, but it seems to be invalid. How can I validate it? After getting GeoJSON format data I want to put on map for projection. I am using LeafLet, java EE, ...
1
vote
2answers
85 views

Leaflet output is grey

I would like to implement leaflet in shiny with R. I try to go with the simple examples I found online: library(leaflet) library(ggmap) somePlace <- ggmap::geocode("Vienna") # Information from ...
0
votes
0answers
49 views

Leaflet self-intersecting polygons display

Is it possible to set colors of the actual intersections of self-intersecting polygons in Leaflet? Example of such self-intersetions can be found on the pic below, the transparent triangles inside of ...
0
votes
2answers
19 views

Is it possible to have a Leaflet control with large images / icons

Im trying to create a map where the layer control have large icons or images, and the "buttons" are located in the bottom of the map and not on the sides. I have used the simple controls until now. I ...