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

learn more… | top users | synonyms (1)

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 ...
0
votes
1answer
20 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
27 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
46 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
11 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
23 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
23 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
64 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
45 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
65 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
41 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
90 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
30 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
30 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 ...
0
votes
1answer
39 views

Multiple GeoJSON Layers

I have a leaflet map of the US and I would like to toggle between zip codes and county shapes. There seems to be no tutorials on how to achieve this in the documentation or an other forums I'lve look ...
0
votes
1answer
46 views

Trying to bind pop-up in leaflet via GeoServer GetFeatureInfo. Is there anything wrong in my code?

Simple Leaflet Map <script src="js/leaflet.js"> </script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> ...
0
votes
1answer
20 views

use a global geoJson layer in leaflet

i´m using getJSON to draw points in leaflet, this is the code: function cargarpapes(movibles){ $.getJSON("papeleras1.php", function(data) { papesjson = L.geoJson(data, { ...
0
votes
0answers
54 views

Use leaflets to display svg floor plans

How can we use the svg image as map? I have the floor plan of svg format and i need to track the location of employees. How does leaflet allow to integrate the coordinates of map and the lat lng? Can ...
0
votes
1answer
59 views

Does Leaflet layer 'add' event not fire properly?

A popup won't open until the data file has loaded and the layer is added to the map - that's pretty obvious. I figured it would help to bind it to the 'add' event - but that never fires: var l1 = ...
1
vote
1answer
55 views

Is there any method to retrieve SQL queries into a GeoJSON file using JSP?

I want to display the contents of my PostGIS database of various shape-files in leaflet pop-up dynamically. I know there are static methods available that retrieves attributes. But I need to by ...
1
vote
2answers
36 views

Disable feature popup when creating new simple marker

I have a leaflet map with some loaded polygon layers. When using the Simple Markers plugin, i would like to create a new marker on top of an already existing polygon feature, but i can only click the ...
0
votes
1answer
54 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 ...
0
votes
1answer
83 views

How to bring my PostGIS map from GeoServer to Leaflet based web application?

I have created a group of shape-files using QGIS and I have stored their corresponding information in PostGIS database by importing the shape-file into pgAdmin3 using shape-file and DBF loader. Then I ...
0
votes
1answer
76 views

Leaflet map - custom markers from CSV and referring to CSV / GeoJSON marker properties?

I run a non-profit online resource called the Megalithic Portal and have created a Leaflet map that uses Leaflet.geoCSV to load in points from a CSV file github.com/joker-x/Leaflet.geoCSV To see ...
0
votes
0answers
32 views

Is it possible to put a raster layer on a shifted Chinese basemap using leaflet API?

Recently, we want to develop an application with leafleat and gaode basemap because some features of these products fullfill our basic needs. We want to overlay some raster layers caculated by spatial ...
0
votes
1answer
61 views

How to open a popup on Marker click when Markers are in array using leaflet maps

Hey guys I have a set of Markers that are getting created dynamically on a .each loops like so. $.each(data, function(index, element) { markerArr[element.id] = ...
1
vote
1answer
88 views

Leaflet custom div & click propagation on other elements

I've gotten custom HTML applied successfully within my #map element (where Leaflet is appended) but I'm having unusual behavior with other Leaflet objects that find themselves within the transparent ...
0
votes
0answers
76 views

Adding a layer switcher using cartodb.js

I am trying to add the layer control (L.control.layers) to an application using cartodb.js (v. 3.14). The last line in the following code L.control.layers(basemaps).addTo(map); breaks the entire ...
1
vote
1answer
53 views

Custom HTML Within Leaflet Map

We're upgrading our Leaflet maps to be larger on the screen and doing so in part by putting information panels, etc. over the map with varying transparencies. Obviously this is easy to do by ...
0
votes
1answer
75 views

Is there a Leaflet for Dummies or Leaflet 101

I am very interested in learning leaflet, but I am not a programer nor a cartographer. Is there any LEAFLET for DUMMIES course that I can take?
0
votes
1answer
41 views

removeFrom(map) doesn't work

omnivore.wkt.parse("${feature}").removeFrom(map); I select features by this line omnivore.wkt.parse("${feature}").addTo(map); but when I remove from map doesn't work this code works but if I ...
1
vote
3answers
76 views

What are the low cost options for converting FLEX API based web mapping applications to any other platform?

As flex is reaching the end of its life, I have one project to convert Flex based web mapping application to any other possible solution with minimum development effort and secure way. I believe Dojo ...
0
votes
1answer
83 views

Leaflet Draw on Mobile - creating a marker

So I made a simple leaflet map that has the Leaflet Draw plugin. I am only allowing users to add a marker. Leaflet is supposed to be mobile friendly, but when I open my website in a smartphone ...
0
votes
1answer
76 views

Leaflet.js map - Pan too and Zoom in on point

This is the first time I am using Leaflet.js. I am trying to create a story map but have come across an issue. Currently I have a map with a scrolling text bar on the left hand side. I would like ...
1
vote
2answers
111 views

How do I embed the a Leaflet map into my web page, using QGIS2Leaf?

I am generally new to web developement, and web gis for that matter, but I want to embed a leaflet map that I made in QGIS using the QGIS2leaf pluggin, into the html of my webpage, but am having ...
0
votes
0answers
238 views

Bootstrap navbar and leaflet zoom controls

I'm using the THE MAP GUY(DE) Bootstrap temple and applying it to leaflet using the code below. The issue I'm having is that the zoom-control doesn't toggle right on page load. It will only after ...
0
votes
1answer
60 views

How to protect the loaded json file name and location using html5 and javascript?

The data of markers (not the map) is stored in a json/csv/js file. We want to show all data as markers on the map. But how to protect the raw data file from public access? Following the example on ...
0
votes
1answer
33 views

extend extent of geoJSON layer - Leaflet

I am zooming to the extent of a set of geoJSONs collected in a FeatureGroup with this call: map.fitBounds(myFeatureGroup.getBounds()); ...I would like to extend the extent a bit; as it is the ...
1
vote
1answer
75 views

Load external geojson file into leaflet map

Have studies this thread but not getting desired result. My index.html looks like this: <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>GeoJSON ...
1
vote
1answer
84 views

Using marker.cluster plugin with the ajax plugin of Leaflet?

I want to use both the marker cluster plugin and the ajax plugin together, but I cannot seem to make it work. My geoJSON data are point geometries. I was able to successfully use the ajax plugin of ...
0
votes
0answers
32 views

How to handle Point Data with date ranges

I am running into an issue with the time sliders in Leaflet. It appears that most all of the sliders developed for Leaflet operate on the assumption that each record in your data layer has a specific ...
0
votes
0answers
116 views

Getting pixel coordinates of an image overlay using leaflet map library on click (right click)

I'm trying to get the pixel coordinates of an image overlay on click (right click/contextmenu) using the leaflet map library. Essentially when a user clicks on the image, I need to find the x,y or ...
1
vote
1answer
87 views

how to draw a polygon in leaflet and add it to geojson file

I am working on a small project with leaflet. the goal of the project is to show a geojson file and updating it dynamicaly from the window of the web site. I have imported the geojson file to the map. ...
0
votes
0answers
56 views

Leaflet application with geojson IE9 error

Help.. My applications doesn't work in IE10 or IE9. It's fine in IE11, FF, Chrome, Safari etc. The error must be in the geojson featurelayer function, since removing it (row102-151) fixes the ...
1
vote
1answer
104 views

Submit a form from within a leaflet popup?

I want to submit a form from within a leaflet popup simply using javascript and geojson. I am essentially collecting attribute information in the form and then I want to process the information into ...
0
votes
0answers
45 views

Leaflet-image draw legend

I'm using the mapbox leaflet-image plugin to allow users to save images of an app I'm making for a client. It works great with this setup: Callback function on click event... leafletImage(map, ...
2
votes
1answer
44 views

Making info panel clickable in Leaflet?

How do we make it possible to click, drag, copy text that appears in Info panel in leaflet.js? In a leaflet application similar to the choropleth example, I'm populating the info panel on click ...