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

learn more… | top users | synonyms (1)

0
votes
0answers
4 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 usin Shape file and DBF loader. Then I ...
0
votes
0answers
10 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
17 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
9 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] = ...
0
votes
0answers
41 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
40 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
33 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 ...
-1
votes
0answers
17 views

Tell leaflet.js to reload tile which is not loaded [closed]

How can I setup to leaflet.js to reload tile which is not loaded. thanks
0
votes
1answer
58 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
29 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 ...
0
votes
1answer
37 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
0answers
32 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
27 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
52 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
69 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
34 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
13 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
41 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
40 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
21 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
51 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
37 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
34 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
35 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
25 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
24 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 ...
0
votes
0answers
17 views

Can I use tileJson with esri's ArcGISTiledMapServiceLayer, maybe with wax esri connector?

I am using the arcgis javascript api to implement my map. I want to enable mouseover event on the images returned from the tiled service. I was thinking that tileJson could help. I have seen that wax ...
0
votes
0answers
39 views

Java error using iframes in IE11: The viewing session is not available or has expired

In IE11 I get an error message (see below) when calling a tomcat7 webapp (BIRT runtime viewer report) from a leafletjs popup inside an iframe. First of all everything works fine in firefox/chrome, ...
0
votes
1answer
50 views

Can I use esri-leaflet together with arcgis api?

I am not sure I have understood the co-existence of arcgis javascript api with the esri-leaflet library. Can I use leaflet together with the javascript api. For example can I have my map built with ...
1
vote
0answers
28 views

Any Examples of D3.brush() used with Leaflet?

I have a leaflet map that I have placed an SVG "on top of" using the leaflet overlay pane. I want to add a D3 brush to the overlay pane that will then update a separate chart. I've looked around for ...
1
vote
0answers
41 views

Leaflet Maps Sync Problem

I am trying to sync 3 maps (BaseMapd, overlayMap, tiledMap) side by side however these maps don't sync together immediately but it works sometimes during different multiple browsers (Chrome, Firefox ...
0
votes
1answer
38 views

Displaying KML data with a user selection

I want to web map some historical cyclones data which are now in KML files, file/year. So I want the user to select a year from a button and the KML files will be displayed on interactive map). I ...
0
votes
2answers
66 views

Leafletjs : combine location data in geoJSON/KML/GPX with other information in CSV through key field

I've been able to load CSV having lat-long co-ordinates into leaflet using this useful solution. Looking for ways to cross-link co-ordinates from a different source and data from another. Describing ...
1
vote
2answers
92 views

Is there any library can perform polygons buffering/ inflating/ merge/ overlap at server side?

I have a set of polygon data express in lat long. I would like to perform some tasks (polygon buffering, inflating etc etc ..) in server side and output the result to client side (client is a web ...
0
votes
0answers
29 views

Javascript - Problems getting GeoJSON from Geoserver

I already read other posts regarding this topic. However, I cannot make it run. This is what I have: var geoJsonUrl = ...
0
votes
2answers
26 views

Collapse leaflet control

I want to collapse a leaflet control on my map. I have the current code: var legend = L.control({position: 'bottomright', collapsed:true}); legend.onAdd = function (map) { var div = ...
2
votes
3answers
55 views

GeoJSON Rendering in Leaflet

I have published a wms using the QGIS Cloud and on top of it I am overlaying the same data (countries of Europe), using GeoJSON. Have a look at an example here: http://jsfiddle.net/j21kh7ao/ At a low ...
0
votes
0answers
30 views

Any other FuseSearch.js examples in Leaflet?

Have been researching about using FuseSearch and using this example. The only difference is that am using polygons.Its working well but not highlighting polygons on results click. Has anyone done a ...
1
vote
0answers
16 views

Leaflet fill patterns

I am using the leaflet.pattern library at https://github.com/teastman/Leaflet.pattern and I want to change the color of my stripes based on a value in the feature just like I do in the following ...
0
votes
1answer
48 views

Use Mapbox featureLayer to create Marker Clusters

I'm trying to use this tutorial (https://www.mapbox.com/mapbox.js/example/v1.0.0/markercluster-with-mapbox-data/) to create marker clusters to style a Mapbox featureLayer containing my data. This code ...
0
votes
1answer
42 views

Batch Edit GeoJSON Markers with Mapbox.js

I cannot figure out how to style all feature points from a local GeoJson file at once using the Mapbox.js. My GeoJSON file has roughly 500 points. I could go through each point in the GeoJSON file and ...
0
votes
1answer
55 views

Querying GeoJSON polygons from Django models in Leaflet?

Am developing an application in GeoDjango and using Leaflet to show my data.I have loaded my data successfully into the map and added a sidebar where I have my textboxes to input values and a search ...
0
votes
0answers
22 views

Leaflet: binding an event to the click of a link within a tooltip/popup

So I have polylines on my Leaflet map which I have bound to embedded YouTube links. var container = $('<div />'); container.html("<iframe width='280' height='157' ...
0
votes
0answers
35 views

How to make the value showing on a leaflet heatmap like this one?

I'm attempting to use leaftlet.js, and heatmap.js (github.com/pa7/heatmap.js/) following this example: www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html But I want to show the value ...
0
votes
1answer
36 views

How to add hyperlink in geojson popup in Leaflet?

I am trying to add a geojson layer with interactive functionality to my leaflet map. I am mostly using this (dated)blog: ...
0
votes
1answer
13 views

Geojson mapevent second mouse click

I am trying to add a geojson layer with interactive functionality to my leaflet map. I am mostly using this (dated)blog: ...
0
votes
1answer
23 views

How to update data in Leaflet Control?

I have a Leaflet map with a control to switch between various basemaps or toggle on/off some overlay data. //Basemaps are all a-okay //Start with no polylines in my overlayData items = []; ...
0
votes
1answer
43 views

Use turf.count with turf.buffer dynamically

I have this code where I'm trying to create a buffer dynamically from a draggable marker and then count how many points fall insed this buffer. As of now I can drag the buffer around without any ...
1
vote
1answer
61 views

Publish a Leaflet map with vector overlay on a WMS server (e.g. GeoServer)

Is it possible to set up a WMS server (I am a bit familiar with GeoServer so this would be my preferred option but of course I'm open to learn something new...) that publishes an instance of a Leaflet ...
1
vote
1answer
52 views

How to use a different projection than EPSG:3857 with CartoDB or Leaflet?

I have data that is accurately positioned with the NAD 83 MTQ Lambert EPSG:3798 projection. If I reproject this data in EPSG:3857 (web mercator) the markers are no longer positioned accurately on the ...