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

learn more… | top users | synonyms (1)

0
votes
0answers
20 views

how to remove duplicate values geojson on feature.properties.name?, using leaflet oneachfeature

I have duplicate value into select combobox, using oneachfeature and geojson the values are into combobox select, I'm trying to remove duplicate caracteristiscas the GeoJSON to populate within a ...
0
votes
0answers
51 views

Leaflet tile rendering

I've startet tinkering with the Leaflet JS library in order to display a Web Map Tile Service (WMTS). By default Leaflet does not support the WMTS standard. An initial investigation has revealed that ...
0
votes
3answers
33 views

Make polygon from area not covered by loaded polygons (like invert selection)

See screenshot, from geojson.io, with a geojson file loaded: So how do we make a polygon out of the blank area? Looking for a way which doesn't involve manually copying selected sequences of ...
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 ...
5
votes
2answers
1k views

Leaflet mouse wheel zoom only after click on map

I'm working with the Leaflet JavaScript Library and attached a (working) map to my HTML Document. It is in the middle of the page, and when I'm scrolling down with my mouse wheel and arrive at the ...
0
votes
0answers
24 views

Tilestache not giving me individual tiles

I'm using Tilestache to serve some tiles outputted from Tilemil: my cfg file looks this: "layers": { "main": { "provider": { "name": "mbtiles", "tileset": ".../DCMetro.mbtiles" ...
2
votes
2answers
3k views

Leaflet draggable Marker

I have setup a draggable marker on my map with Leaflet API. Its working fine. But the problem is when I am trying to drag it to the border area the map is not moving. I want a panning map with Marker ...
0
votes
1answer
118 views

Leaflet markerClusterGroup 'undefined is not a function'

I have to create a map with more than 5000 points from a geojson. So I would like to use markercluster plugin with Leaflet. I wrote the following code with help from the documentation and from other ...
1
vote
0answers
33 views

How to 'filter' a district by clicking on it in Leaflet?

I have created a basic layer of districts on a background google streetmap on QGIS. Using the qgis2leaflet plug in, I'm able to render a webpage of the same. I want the web product to be such that ...
-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.
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
100 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
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
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
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
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: ...
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?
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
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
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
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 ...
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: ...
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
47 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 ...
1
vote
1answer
442 views

leaflet-routing-machine add waypoints, routing summary

I'm playing around with leaflet-routing-machine (https://github.com/perliedman/leaflet-routing-machine) and have 2 questions about it's usage: 1) I have the following code now routeControl = ...
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. ...
2
votes
1answer
517 views

Leaflet setView with non lat/long CRS

Is it possible to use setView when using an alternative CRS? var map = L.map('map',{crs: L.CRS.EPSG26915}).setView([4970081,477018], 13); // Returns: Uncaught TypeError: Cannot call method ...
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 ...
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
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 ...
2
votes
0answers
194 views

Leaflet - Enable/Remove popup on mousedown/mouseup?

I'd like to do as the title suggests and can get the popup to appear on mousedown with the following code, but mouseup doesn't close the popup: // Quick look at info on mouse hold ...
2
votes
2answers
3k views

Leaflet export to jpg

Does anybody know if there is a way to export the current view of a Leaflet map to jpg? The setup is as follows: Leaflet is hooked up to an Oracle database. Depending on user interaction, various ...
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 ...
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 ...
2
votes
2answers
2k views

How to add Geoserver WFS to Leaflet JS Application

I have a PostGIS database and have successfully consumed a table into GeoServer and published a WFS. Are there REST endpoints available for these WFS' akin to ESRI's feature services? How are ...
0
votes
1answer
68 views

How to prevent Leaflet from loading tiles from server

I am currently developing a couple of solutions with LeafletJS and it frustrates me that my Firefox browser loads the tiles from the server (e.g. Stamen or OSM) and not from cache every time I reload ...
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 ...
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 ...
0
votes
1answer
59 views

Problem with Leaflet Boundary Canvas plugin

I'm trying to identify the source of a problem that I'm having, I cannot show a tile layer(created with gdal2tiles) inside a polygon generated in Leaflet, using the plug-in ...
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
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 ...