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

learn more… | top users | synonyms (1)

0
votes
0answers
3 views

Leaflet inbuild AJAX methods for WMTS getCapabilities request

I was wondering whether the Leaflet library has inbuilt methods to make AJAX requests. My goal is to create a plugin that makes an XMLHttpRequest request to a specified WMTS resource and parse the XML ...
0
votes
0answers
9 views

Map Not rendered Leaflet but renders correctly in opening console

I am loading a leaflet map rendering mapbox tiles, geojson layers (initially i dont show the map) and i also have tabular links which can be seen when the page loads, the links are list of places and ...
0
votes
0answers
6 views

Open Popup on CartoDB Layer

I have a cartodb viz layer (polygons) and geojson layer in a leaflet map (parcels), where the geojson layer overlaps the cartodb layer. How do I disable the interaction to the geojson polygon layer so ...
0
votes
1answer
19 views

Using Mapbox (LeafletJS), how do I edit imported shapes from GeoJSON?

Overview: I'm currently working on a project where I'm importing GeoJSON into a map using Mapbox. However, I'm wanting to be able to edit those shapes once imported into the map. I've gotten the ...
0
votes
1answer
13 views

Leaflet: Find my “this” in GeoJSON.pointToLayer function

In leaflet, I have a class that extends L.GeoJSON: L.MyLayer = L.GeoJSON.extend ({ initialize: function () { this.markers = []; ... I redefined the pointToLayer method to create ...
1
vote
2answers
18 views

Embed Sound in Leaflet Popup with QGIS

I was wanting to embed some animal sounds in a leaflet map my son and I are creating. Have images embedded, but would like sounds in the popup if possible. Like embedding images, can this be done ...
0
votes
0answers
14 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
37 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
19 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
19 views

XY bounds for L.tileLayer in CRS.Simple

Sorry for my english Hi, I have leaflet.js (image of map 5913x7863) and there L.CRS.Simple I had var imageBounds = [[1468.9700,-11.7050], [1968.2705,363.7705]]; var file0 = new ...
0
votes
0answers
14 views

How can I sync a vector image with a leaflet map?

I am trying to create the following: For the user to interact (hover, click, etc) with vector layers on the left, and have a leaflet map respond to it on the right. I have used the following that ...
0
votes
0answers
11 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" ...
1
vote
0answers
26 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 ...
0
votes
1answer
28 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 ...
2
votes
1answer
23 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
16 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
33 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
26 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
33 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
49 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
17 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
12 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
37 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
21 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
24 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 ...
0
votes
0answers
16 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
26 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
13 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
40 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
21 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 ...
0
votes
1answer
13 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
16 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
19 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
24 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
20 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
17 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
23 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
0answers
50 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
25 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
29 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
14 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
44 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
69 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
50 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
20 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 ...
3
votes
1answer
59 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
50 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
22 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
13 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
25 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 ...