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

learn more… | top users | synonyms (1)

3
votes
1answer
49 views

Packing polygons without intersection and empty places [closed]

How can I pack polygons without empty places and intersections? Please tell me everything that might help me (API, algorithms, etc.) I'm using: USPS API to get carrier routes. dbscan.js to ...
1
vote
1answer
70 views

Leaflet : filter with condition

I want to insert a condition in a geojson filter. This condition is based in a variable called here varState: <button id='button1'>button1</button> <button id='button2'>button2</...
-5
votes
2answers
92 views

How to remove attribution in Leaflet

I want to remove the leaflet.com that appears on the right bottom of the screen here
2
votes
0answers
68 views

Leaflet filter on geoJson properties : multiple criteria

I'm using Leaflet filter on geoJson data. I'm able to apply it with a simple criteria : filter: function(feature, layer) { return feature.properties.field1 == "yes"; } I can also apply two ...
1
vote
0answers
25 views

edge Data labelling OSM local tile server

i have OSM tile server running locally on my machine I have used Leaflet to add markers Now I am looking for graph script in which markers to act as nodes and polygon (more precisely an arc) to show ...
0
votes
1answer
270 views

How to call a leaflet Javascript Function in dropdown menu bar?

i have the following problem: my target is a hybrid app with leaflet. I create a dropdown menu with html/CSS/JQuery. Here is the code: <nav> <ul> <li id="menuPoint1"><image ...
2
votes
1answer
65 views

Adding WMS layer with CQL filter

I would like to add to my leaflet's web map layer from my WMS service (Geoserver), but I need to use CQL filter in GetMap link: localhost/geoserver/my_location/wms?(...)&CQL_FILTER=[...] Is ...
0
votes
1answer
48 views

How to apply Mapnik Zoom Level Styling via Leaflet Zoom Levels

I've setup a node mapnik server to render some tiles for polygons. The application I've built to call out to these tiles is in Leaflet An example of a current mapnik styling rule is below <Style ...
0
votes
1answer
58 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
797 views

Leaflet WMS Layer from arcgis server (extreme noob question)

I am very new to GIS, and find things a bit overwhelming. Please be kind and excuse my ignorance. I am trying to display a map on a website using leaflet. The map I want to display is hosted from an ...
2
votes
1answer
83 views

Highlight feature below mouse-overed track in Leaflet

Currently, on http://velo300.free.fr/debug, feature highlights on 'featureOver' creating a white new feature on top of mouse-overed feature. Problem: i need also to work with 'featureclick' for ...
0
votes
0answers
32 views

change image of marker in leaflet

This is the code; it works very well //**************************************WFS****************************************************// //**************************************Conteneurs*************...
1
vote
1answer
34 views

32-bit Map tiles for use with leaflet

I've got a lot of single-band Geotiff files with the GDT_Float32 format and I need to present these over the web, hopefully using a webmap leaflet/mapbox/googlemaps widget where clients can hover over ...
1
vote
1answer
60 views

Leaflet display only clicked element of a loaded map layer (polyline)

I am creating a web mapping application that will return appropriate routes based upon ST_length query on a cartoDB dataset. So far, the code below successfully maps those routes with individual ...
0
votes
1answer
63 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 ...
0
votes
0answers
48 views

Loading WFS from Geoserver to Leaflet

I use GeoServer 2.7.0 and Leaflet-0.7.7 and the jquery: <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>` for showing a WFS in my Geoserver. How do ...
2
votes
1answer
35 views

where i can add style in this code leaflet

var urlborne = 'http://localhost:8080/geoserver/Gestion-proprete/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=Gestion-proprete:borne&maxFeatures=2000&outputFormat=text/...
2
votes
1answer
52 views

CartoDB SQL API styling individual polyline returns

I am creating a web mapping application that will return appropriate routes based upon ST_length query on a cartoDB dataset. So far, the code below successfully maps those routes (and clears any ...
2
votes
0answers
27 views

WMS Layers from Azure Geoserver not loading with multiple users

I am loading multiple WMS layers into a leaflet web application from an Azure virtual machine Geoserver that pulls data from a PostGIS database on the same machine. The layers load through quickly ...
2
votes
1answer
102 views

How to rotate an embedded web map (on pc)?

I was looking through a couple of maps I made, the maps were created by serving VectorTiles through TileStache and using Leaflet and Tangram (on respective pages) to render them. One of the reasons I ...
0
votes
1answer
34 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 ...
2
votes
1answer
74 views

Leaflet: Map tile request, hidden key/secret via proxy

I would like to request a Leaflet tilelayer without exposing my API key and secret. For example, using the UrtheCast API (but would apply to other similar APIs that embed api_key and api_secret in the ...
0
votes
0answers
24 views

ordering overlays in layerControl

I have an application that adds GeoJSON to a map at various times. When the map loads I add a number of administrative boundaries. However, the user is able to query a database to get lat-longs that I ...
0
votes
1answer
72 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
39 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. http://plnkr....
1
vote
1answer
63 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
36 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
66 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
97 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
2answers
2k views

How to export to all points within Leaflet polygon?

Is it possible to export all points within a polygon drawn using Leaflet? (http://leaflet.github.io/Leaflet.draw/).
0
votes
1answer
94 views

Adding shapes and/or icons to legend using Leaflet within R?

Is it possible, using Leaflet within R, to make a legend in such way that includes a set of icons or shapes and their corresponding value?
0
votes
1answer
84 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 ...
2
votes
1answer
39 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
2answers
114 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 ...
1
vote
1answer
50 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
66 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 ...
0
votes
1answer
65 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 ...
1
vote
1answer
53 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
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. ...
3
votes
2answers
4k views

Make sidebar div active on Marker click (and vice versa)?

What's the best way to change an element to active when you click on a marker. For example, when you click on a marker on a Leaflet map, how to make it so the sidebar element that's related to it ...
56
votes
6answers
32k views

Should I use OpenLayers or Leaflet?

I was debating with one of my collegues on OpenLayers v/s Leaflet. I made a point that OpenLayers is much better API if we wish to build a project, where you need direct connectivity to the Geoserver ...
2
votes
1answer
108 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
83 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
40 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
35 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 L.circleMarker(latlng,...
0
votes
1answer
30 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
42 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
47 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 ...
4
votes
1answer
88 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 ...
2
votes
0answers
52 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 ...