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

learn more… | top users | synonyms (1)

3
votes
1answer
44 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
29 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
30 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. ...
-1
votes
0answers
17 views

SuperCluster get only null [duplicate]

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
56 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
20 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
27 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 ...
0
votes
1answer
42 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
46 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
24 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
15 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
31 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
26 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
24 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
21 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
28 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
25 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
45 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
44 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
24 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 ...
-1
votes
0answers
34 views

Popoup Marker Leaflet Slow open in mobile phone

I'm not an expert , but I've created my base map with Leaflet . The map opens loading markers When I click on the marker , the popup is slow to come out . many times click on a marker to let out a ...
2
votes
0answers
40 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
57 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
1answer
58 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
42 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 ...
0
votes
1answer
60 views

Problem with same legend for two layers in Leaflet

In Leaflet, I have two layers (treated as overlays) and a single legend that I want to appear when any of them is checked in the Layer Control panel. If they are both checked, I don't want it to ...
0
votes
1answer
30 views

Drawing arcs/curved line/arrows with Leaflet using method other than arc.js?

I've been trying to find a good way to draw arcs or even arrows dynamically with Leaflet.js, but I haven't come up with much. I tried arc.js, however I was having problems with that approach, and I ...
0
votes
1answer
44 views

Leaflet layer tree plugin - order layers

I am creating a leflet layer tree control with some baselayers and overlays, and I'm having problems with the order of the layers. When a change a base layer, this overlap the overlays. This is the ...
0
votes
1answer
46 views

Get array of LatLngs from ArcGIS feature layer polyline using Esri-Leaflet

Leaflet has a method built into the polyline class to return an array of all LatLng coordinates of the line. It would look something like: var latlngArray = polyline.getLatLngs(); Esri-leaflet, the ...
1
vote
2answers
60 views

Leaflet Layer Control problem

I am struggling to find a solution to add my two basemaps (Esri Imagery and OpenStreetMap) and one external GeoJSON to show up on the Layer Control panel in Leaflet. Here is the block of code: ...
0
votes
1answer
33 views

Hide/Show leaflet markers based on specific values

So I have a Python list of dictionaries with a number of IPs and "Scores" for each IP. I'm adding them to my front end map / leaflet using jinja2 like so: var map = L.map('map') ...
3
votes
1answer
41 views

How to make WFS request using LeafletJS

In the past I have used OL extensively in order to make WFS requests to Geoserver and add layer on a map. Now I am trying to learn LeafletJS and I want to do something similar. I have made a WMS ...
0
votes
2answers
49 views

Leaflet JS Plugin

I'm having trouble getting a simple java script plugin to work on my script. I'm trying to get the measure tool to work. The little toolbar pops up but it doesn't do anything. When I run it I get the ...
0
votes
0answers
41 views

How do I store GeoJSON format in Firebase so it can be used for Leaflet GeoJSON

I am new with Firebase, Leaflet, and GeoJSON .. I have a question, how to store data with GeoJSON format in Firebase, so it can be retrieved and used for leaflets GeoJSON to display marker(s). I know ...
0
votes
1answer
35 views

How to access secured wms server in leaflet?

I browsed regarding this question and I couldn't find any better solution.This link has some information for openlayer but not for leaflet.How to access secured wms via leaflet in java script?Do I ...
1
vote
1answer
41 views

Loading WMS layer from USGS WMS server using Leaflet?

I am trying to load wms layer using leaflet from usgs wms server but I am getting an empty image. I have gone through Problem loading WMS layer from external server in Leaflet link but it doesn't ...
1
vote
1answer
89 views

Leaflet Routing Machine: how to export route details and coordinates in JSON / GeoJSON?

I need to export / save the route details found using Leaflet Routing Machine in JSON or GeoJSON format. I've tried to use var routeArray = new Array(); routeArray = control.getWaypoints(); alert ...
0
votes
1answer
89 views

Leaflet Routing Machine: how to initialise map without waypoints loaded?

I'm starting to take my first steps using Leaflet Routing Machine. Everything works fine if I use load waypoints when I create my L.Routing.control and add it to the map. Now I'd like to start my map ...
1
vote
1answer
37 views

esri-leaflet edit multiple featureLayers

I'm trying to use the esri-leaflet example on editing (https://esri.github.io/esri-leaflet/examples/editing.html) to edit two different featureLayers. First when I add a point with leaflet draw, I ...
0
votes
0answers
25 views

Zoom animation resets to pre-animation state

I want to animate the zoom in/out behaviour of a custom Leaflet 1.0 WMS layer. It sort of works, but the animation appears to undo itself just prior to the new image being displayed. I am wondering ...
0
votes
1answer
21 views

Trouble getting leaflet-label plugin to work on geojson file

I cannot figure out how to get labels on my featureLayers to show in my LeafLet map for a mapbox featureLayer using the leaflet-label plugin. I thought all i needed to do was add .bindLabel('Look ...
0
votes
1answer
35 views

How to highlight leaflet marker cluster on mouse over?

Is there a way to highlight a leaflet marker cluster when mouse over as you can do for a simple marker? // ADD YOUR BASE TILES var baseLayer = ...
1
vote
1answer
41 views

Sortable list of layers

I want to create a sortable lists of layers using jquery ui. I'm trying to use .setZindex() and .index() method. I think that index of <li> does not refresh after order changing. I'm not ...
0
votes
0answers
35 views

Leaflet - layer tree plugin

Does anyone know an appropriate plugin for leaflet as shown in the following image. I tried the leaflet-layer-tree-plugin, but the result is not what I want. Any help or suggestions?
0
votes
1answer
16 views

Add additional markers to existing featuregroup in Leaflet

It is possible to add additional markers to an existing featuregroup after it has already been added to the map?
0
votes
1answer
20 views

Change marker within leaflet map when loading data from geojson file

This section of code adds markers to my map (it works), how can I change the marker to a different icon when dealing with geojson? var cycleracks = $.getJSON('cycle-racks.geojson', function (geojson) ...
1
vote
1answer
46 views

How to create a heatmap with numbers using Leaflet map?

I wish to create a heatmap like this one at http://www.trulia.com/local/san-francisco-ca/tiles:1|points:1_crime With the number changes at different zoom level - the number can appear in a ...