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

learn more… | top users | synonyms (1)

2
votes
1answer
29 views

Building maps - when to embed in tiles versus implement in leaflet

I'm wondering if there are any principles or rules for when to "bake" geographic features into map tiles (e.g. using Mapbox Studio) versus when to "draw" them on dynamically (e.g. using Leaflet.js). ...
0
votes
1answer
61 views

Error Using 'L.mapbox.featureLayer' to load GeoJSON with pointToLayer Option

I am currently working on a project where I am loading GeoJSON into a map. The GeoJSON will include circles, point markers, and the other essentials shapes. I've been having this issue that I can't ...
2
votes
0answers
59 views

Field Collection App for Geoserver or Any OS GIS Server

I am looking for a mobile app/interface for field data collection and mobile editing of GIS data that relies/syncs back to some type of GIS server or database. I am aware of Fulcrum and AmigoCloud, ...
0
votes
0answers
117 views

Leaflet - Check if polyline intersects polygon

What is the best way to determine if a polyline (not just the vertices) intersect a polygon? Or checking if the polygon contains any of the polyline? I am checking within a function where my polyline ...
0
votes
1answer
58 views

Leaflet - Can I use a different background tile provider depending on zoom level?

This may look strange, but I cannot made up my mind between providers of satellite tiles for Leaflet. ESRI sattelite looks beautiful, but cannot reach the zoom level I need. HERE is not nice on low ...
0
votes
1answer
101 views

How to introduce variable time interval in “window.setInterval(function() {…” segment?

The following leaflet codes draws a series of markers one by one. How to introduce variable time interval in "window.setInterval(function() {..." segment?. I want to display each marker for the time ...
0
votes
1answer
60 views

Leaflet markercluster - cluster/uncluster toggle

Is it possible to toggle between clustered and unclustered with a leaflet MarkerClusterGroup? I know I can disable clustering at max zoom levels using the disableClusteringAtZoom param below ...
0
votes
1answer
21 views

How can track marker clicks in Leaflet?

How can I view which markers are being clicked on by users in Leaflet?
0
votes
1answer
128 views

Leaflet MarkerCluster custom info window instead of spiderfy effect

So I have been experimenting with the Leaflet Marker Cluster and was wondering if there is a way to disable the spiderfy animation and change the event when cluster is clicked on? Instead the clicking ...
0
votes
0answers
62 views

Filter geoJSON layer after it has been loaded

I'm declaring and defining a geoJSON layer first, like: var layer1 = L.geoJson(null, { onEachFeature: function(feature, layer) { ... } }); ..and then loading a CSV into it, like: ...
1
vote
1answer
46 views

Reusing tiles between zoom levels of Leaflet?

I have a Leaflet map with a GeoJSON Tile Layer and a custom backend for serving geoJSON tiles. The geometries returned from the backend are simplified depending on the zoom level, but within certain ...
1
vote
0answers
34 views

Leaflet with GeoJSON Tiles and a Partitioned Datastore

I'm looking at displaying a frequently updated (potentially thousands of points per second) global dataset of locations on a tiled slippy map. Functionally I'm just going to be putting a marker down ...
1
vote
1answer
116 views

Reset leaflet routing machine route and controls

Im trying to build a geolocation based routing app in angular using leaflet.js and leaflet routing machine. I have this 'addRouting' function where I pass in a users location (fromLat, fromLng) and ...
1
vote
1answer
27 views

Leaflet marker cluster from JSONP WFS + Popups

I'm fairly new to Leaflet and just managed to use Leaflet marker-cluster with a JSONP WFS which provides my data from Geoserver. Now I would like to have a popup for my markers by mouse click. But I ...
0
votes
0answers
57 views

How can I get the mouseover event to work in my Leaflet.js map?

I have been trying to follow this mouseover example on the Leaflet.js website but I can't get my test version to work properly. The mouseover works only in some shapes at a time, but the mouseout ...
1
vote
0answers
66 views

LeafletJS How to set custom map scale for a flat image map (CRS.Simple)

I've been trying to get a flat image fantasy map working within LeafletJS. I have pretty much everything working well except for the map scale legend where two things are not working: I can't seem ...
1
vote
1answer
20 views

Saving openJUMP data to be displayed in leaflet

Using OpenJUMP, I've managed to create a road map layer split at every intersection of the lines (using the noder tool). I need to take this data and display this using leaflet by using end ...
1
vote
1answer
18 views

How to break markers drawing which is in progress

The following leaflet codes draws a series of markers one by one. I don't want to wait until all points are drawn. How to break the drawing process before it ends and clear the screen? <!DOCTYPE ...
1
vote
0answers
36 views

No output when rendering GeoJSON using Leaflet() package in RShiny

I am creating a Rshiny interface on that can take in the user input when a user click on a point on the map, query the user's selection from postgresql and return another map layer. The package I am ...
0
votes
0answers
54 views

How to convert a geojson from Postgresql to geojson format readable in rCharts in R?

I am creating a Rshiny interface on that can take in user input and SELECT the respectively map layer from Postgresql database based on the input. The package I am using to plot the map is rCharts. ...
0
votes
1answer
48 views

Adding markers within constituency bounds using leafet.js and leaflet-pip

I'm trying to make a map where a user can select a constituency and then see a series of markers, from a much larger list, that are only within that constituency. I have the code below, and if you ...
0
votes
0answers
39 views

Querying WMS feature using leaflet

I am using lealflet 0.7, I need to query the features based on attribute and spatially. Is there any plugin available to query the features directly from geoserver. I have already tried this to load ...
0
votes
1answer
24 views

How can I make a map-marker's popupContent be a random phrase?

I'm using leaflet.js to make a map and I need help with the javascript required to make a map-marker generate a random phrase with each click. I've used this code to generate random text: function ...
0
votes
1answer
136 views

Leaflet: Scroll wheel controlling map zoom and not drop down menu

Edited 6/19/2015 I have a custom leaflet control box with a drop down menu. When I use the scroll wheel over the menu, the map changes zoom level instead of scrolling the menu. The problem occurs ...
0
votes
0answers
77 views

leaflet.js plugin leaflet-easyPrint and markercluster styles

leaflet-easyPrint is a great plugin, as for the moment is the only one that plots all layers and markers I need. But I also need to visualize clustered markers, so I am using markerCluster plugin. ...
0
votes
0answers
46 views

Web Application for display raster data on basis of time slider

It May act as a duplicate question to many, but i have tried refering too all the questions related to my questions, but i am still confiused. Below in attached my code. which i use for Web Mapping ...
0
votes
0answers
23 views

Host LeafLet Page on Dropbox

Can anyone provide me with some information on hosting a LeafLet web map, created with the QGIS2Leaf plugin for QGIS, on Dropbox. I have used Droppages, however the webmap does not come in, it is a ...
0
votes
1answer
72 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 ...
3
votes
1answer
168 views

How to create an exact tracking route from GPS data with animated icon?

Probably this is not purely GIS related question, its related to developing issues. I am just asking if there is any kind of suggestions from Gurus. I am building an tracking application where GPS ...
1
vote
2answers
78 views

Configure default styles in LeafletJS

I want to change the default styles for vector layers in my Leaflet version 0.7.3. I can't find anything about that in in the documentation, so I made this hack: map.on('layeradd', function(e){ ...
0
votes
1answer
46 views

Pass coordinates parameters to geoserver pgrouting service from Leaflet wms tile layer

I've configurated a pgRouting service in Geoserver, following the steps on the documentation it's easy to accomplish. Reading the documentation, existing examples, etc.. I've come to undestand how ...
4
votes
1answer
138 views

Leaflet JS add GeoJSON shape as a hole in a polygon

I have a dataset which already contains geojson. I can add it to my map with the following line of code. L.geoJson(data.geojson).addTo(map); And I get this But I want to achieve this, where the ...
3
votes
0answers
82 views

Solution for Test Automation for web gis/mapping application?

I've to find a solution for test automation for web gis/mapping application that using OpenLayers 2.x or Leaflet as javascript libraries. I'm oriented on evaluate Selenium WebDriver (or other similar ...
0
votes
1answer
34 views

Why are these leaflet popup values comeing back undefined?

Hi I have a leaflet map consuming a dynamic map layer on ArcGIS server. The service is viewable on the map and exposes the following attributes: Fields: OBJECTID ( type: esriFieldTypeOID , alias: ...
0
votes
0answers
22 views

KML- plugin for Leaflet using high-DPI devices

I've recently added KML overlays using leaflet and kml plugin by Pavel Shramov. Everything works fine on my desktop computer, but from a retina display and other mobile devices with a higher ...
0
votes
0answers
51 views

Add ArcGIS Online web map or layer on top of Google Maps?

How is it possible to draw ArcGIS Online resources (such as FeatureLayer) on top of Google Maps in a web application? I don't need any working code right now, just trying to figure out if this is ...
0
votes
1answer
26 views

How to keep selected layers on page load in Leaflet?

I have a leaflet map that reload page and map view depending on a drop-down list. I have many layers in it and I'd like to keep selected layers as selected when the page reload after clicking on an ...
0
votes
1answer
41 views

How to display the attribute table of the map using leaflet

I'm developing a leaflet application. for that i want to display the attribute table of particular wms layer using leaflet. Is it possible how can we do that? Thanks in advance.
-1
votes
1answer
62 views

How Map tiles can be downloaded from Mapbox or OpenStreetMap?

I am trying an offline Map application in which I need to show a map up to some zooming level. I thought that I would download tiles and put it locally.
0
votes
0answers
19 views

stop leaflet.heat from redrawing on zoom

I'm working with leaflet.heat, which redraws the heat map based on the zoom level. Best I can tell, it resamples the points within the extent of the map and redraws based on the intensity of the ...
0
votes
0answers
30 views

Leaflet control to display scale in native/declared CRS (i.e. degrees)

I'd like to have a Leaflet map display the scale of a layer in native coordinates (i.e. degrees in EPSG:4326). From what I have read so far the map control always handles meters; is there a way to ...
0
votes
1answer
29 views

how to customise toobar in Leaflet.Draw plugin?

I Down load the Draw.js and one ccs file to get use of the Leaflet.Draw plugin now need to customise the toolbar(i.e want only polygon and marker)
1
vote
0answers
104 views

Rendering TopoJSON in Leaflet from GeoJSON PostGIS output?

I'm using the query found here SQL query to have a complete geojson feature from PostGIS to get a geojson that I can display on a leaflet map. However, the amount of data is kinda big and the ...
0
votes
1answer
80 views

Convert Leaflet WMS layer to Leaflet GeoJSON layer

Using the Leaflet API I am adding a WMS layer through the L.tilelayer.WMS feature. This feature includes only a certain amount of options such as 'layers','crs','style' etc. Through the Leaflet ...
0
votes
3answers
137 views

How to load geojson from geoserver to define a variable in leaflet?

How can I load a geojson file from geoserver in leafletjs? There are lot of suggestions out there, but none of them work for me. Currently my app loads a js file from the server that starts like ...
0
votes
0answers
53 views

Turf buffer on polygons

Is it possible to use Turf and place a buffer on a point and aggregate a field from polygons? Say I have two geojson layers in a Leaflet map. One layer is polygons for small areas with population ...
0
votes
0answers
10 views

Code for displaying a layer on the map from an external GeoJson file [duplicate]

Can anyone please help me with the code for displaying a layer on the map from an external GeoJson file that is stored in the same directory as my html page and for retrieving the GeoJson file from ...
0
votes
2answers
206 views

Adding Multiple JSON Layers to Leaflet Map

I'm trying to put two different json files over a single map. One is drawn by zip code boundaries, the other is county. For some reason, I can't get my leaflet to work. IF someone can help point me to ...
1
vote
1answer
59 views

Display tile grid borders with leaflet (visual debugging)

I'd like to have the tile grid borders displayed on a leaflet WMS Layer in order to see which areas are requested as separate maps. On top of that it should be possible to overlay a border to the ...
0
votes
1answer
34 views

Retrieve polygon attribute when positionning a point - openlayers / leaflet

Using a client-side webmapping library (openlayers3 or leaflet), I want my user to be able to add one marker on the map. I will then be able to retrieve long/lat coordinates. From that, I want to ...