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

learn more… | top users | synonyms (1)

0
votes
1answer
60 views

Which map API to draw polygon and export my data that is within boundary?

I have 5 point datasets that I want to display and be able to filter by fields. I will then be able to hand draw a polygon and export Excel of the data from each dataset within the polygon. Which web ...
0
votes
1answer
39 views

Trying to learn leaflet, but not understanding the use of the "_.[method call?] syntax

I have been using Leaflet as of late and enjoy the "lightness" of this API vs. OpenLayers. One of the things I am doing is looking at examples and/or source code from pages that use this API. I ...
0
votes
0answers
56 views

Error while passing geojson data to leaflet heatmap

I am using following set of code for converting geoJson data into Heatmap format and passing to L.heatLayer extends of leaflet. While using this function to fetch the data...I get this following ...
0
votes
0answers
24 views

get wms info with Leaflet

I am trying to export(excel,xml or pdf formats) wms feature information using the next tools: 1.- Geoserver.-Provides a Sql statement wich generates a wms polygon layer. 2.- Postgis.-Provides the ...
0
votes
1answer
65 views

Tools for map animations

I am preparing some visualizations of data (mainly animated choropleths), and I am looking for suitable tools. Ideally, I am looking for something similar to this kind of animated infographics. So, I ...
1
vote
1answer
22 views

A problem with event firing upon mouseout

I'm trying to create a point map that displays information about a point in an info box upon user mouseover and changes the styling of the point. On mouseout, I want the info box and marker styling to ...
0
votes
0answers
40 views

How to remove all active layers or to know all active layers in leaflet?

I just need to know if there is any function which helps to return all active layers. basically, I need this function to remove all layers due to my ajax call. Here is my main function ... function ...
0
votes
0answers
13 views

scenarios to make multiple data maps comparisons?

I'm using Leaflet (and several of its plugins) to make a custom SOLAP solution and i want to offer to the user, the possibility to make data analysis and comparison between multiple maps, my question: ...
0
votes
0answers
42 views

Geoserver sometimes does not load all selected layers

I have geoserver serving two layers from postgis into a leaflet application. Leaflet is requesting GeoJSON from geoserver which are displayed one a time using Leaflet's layer control. The issue here ...
0
votes
0answers
29 views

How do you filter mapbox layers?

I have 6 layers that contain grid, feature, and tile layers. var layers = [{ name: 'basemap', minZoom: 0, maxZoom: 19, layer: L.layerGroup([ ...
0
votes
1answer
38 views

Leaflet popups only displays columns where cell information NOT NULL

I've got the following map on JSFiddle. The popup information comes from an Arcgis Server with 23 columns. When you click around the markers you can see that most of the popup information are not ...
0
votes
0answers
20 views

Can leaflet load tile of level n-1, instead of the tile at level n if it is not found. Without a geo server?

My application loads the tiles directly from a folder located on a server . I am using leaflet to do so . The tile url pattern is as folows: http://localhost/mymap/{z}/{x}/{y}.jpg My map (google ...
1
vote
1answer
31 views

Leaflet adding a HTML label

I would like to add a HTML label above each marker in a leaflet map. Is this possible? Example: Code for labels: HTML <table> <tr> <td class="red"></td> ...
0
votes
1answer
33 views

Best Map API for route polygon calculations

We are building a web app. I need to obtain the area reachable from specific points by driving or by walking in order to obtain the polygon (eg., 5 minutes walking polygon from a specific point), so ...
0
votes
1answer
31 views

Leaflet popups with source's special characters

I've got a map where I integrate spatial point data from an ArcGIS Server. Now I want a popup triggered via a click on the point. I know how everything works and the popup is displayed. But I've got ...
0
votes
0answers
40 views

Leaflet filtering existing featuregroup

I have a leftleat map and i would like to filter the featuregroup i am displaying. exp_colJSON = new L.geoJson(exp_col,{ onEachFeature: pop_col, pointToLayer: function (feature, latlng) { ...
0
votes
0answers
21 views

Leaflet removing labels when any popup window is shown

I am newbie to leaflet and i found the following solution to add static labels to features in my map: L.CircleMarker.include({ bindLabel: function (content, options) { if (!this._label || ...
0
votes
2answers
56 views

Leaflet legend. Where am i going wrong?

This is driving me nuts! I am trying to add a legend to my leaflet map and no matter what I try I cannot get it to display properly. I have imported a point level geojson into my map and I have ...
0
votes
0answers
15 views

leaflet filelayer.js change click event

First off, I am no Javascript expert. Second, I have a feeling this is nice and simple for someone with skills. I am building a map and incorporating the leafletfilelayer plugin. The plugin works ...
1
vote
1answer
77 views

How can I project geojson borders on the google earth tiles in leaflet?

I started working with leaflet and google earth tiles. I want to add borders on my map so I tried to use the countries geoJson Data as a layer on the map. The problem is that the json borders ...
0
votes
1answer
65 views

How to export to all points within Leaflet polygon?

I dont have any idea If it is possible to export all points within a draw polygon. (http://leaflet.github.io/Leaflet.draw/). Thanks in advance.
0
votes
2answers
112 views

How do I json_encode without those quotes for the coordinates in leaflet geojson polygon?

I have a field name: 'coordinates' I have the coordinates stored in there: like this: [[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]] when I json_encode($geojson); I get ...
0
votes
0answers
18 views

Enabling all layers by default using Leaflet?

I am using leaflet maps to compare heat layer and marker layer. I've an option to add multiple marker and heat layers dynamically. For me Heat layers are enabled by default as on when user adds new ...
0
votes
1answer
50 views

Help binding Dynamic Map Layer popup in Esri Leaflet?

I've been experimenting with a web map using Esri Leaflet examples and I've run into a bit of a problem getting my popups to load. I'm able to successfully load the data from the REST service and it ...
2
votes
2answers
81 views

great circles in QGIS and export in 3857 webmap

My plan is to visualize great circles in a leaflet webmap. So coming from this great postgis article and R version I thought it would work like this in QGIS: create line from two points, store ...
0
votes
0answers
22 views

Preventing map panning to last drawn marker using Leaflet?

I have a basic Leaflet map where I need to draw several markers and lines on. How do I prevent the map from panning to the last drawn object? I've read about setting autopan : False for popups from ...
0
votes
2answers
69 views

Json not loading from Geoserver into Leaflet

I'm creating an web map application using Geoserver and Leaflet. I'm trying to load a few Json feature through an WFS service.The problem is that nothing is being displayed on the final map, the ...
1
vote
1answer
53 views

How do I toggle a legend of a cartodb layer in a leaflet map?

Per my previous question - here - how do I get the legend to toggle (I have it turned off now) in conjunction with toggling the cartodb layer via the leaflet layer control? Maybe adding it as a ...
0
votes
1answer
77 views

Showing only ONE layer from a group layer in Leaflet

I have the following code to solve my workflow. But it does not work properly. The problem of the map behaviour appears to be within the map.getZoom function at the end of the code. That function ...
0
votes
1answer
60 views

Creating Leaflet layer that can be toggled in layer control from CartoDB viz.json?

How do I create a leaflet layer that can be toggled in the layer control from a cartodb viz.json? I have read that the cartodb.createlayer does not create a leaflet layer. It seems you can add the ...
1
vote
0answers
39 views

Leaflet update getcenter coordinates

I am bringing in leaflet routing control into my map and I would like to have the route icons show up in the center of the current view. using the code below I can get the icons to show up at the ...
2
votes
1answer
91 views

Leaflet Marker Mouseover Popup

I've tried to make a MouseOver Markers Popup since a couple of days, I'm using Leaflet. I know some solutions I've read in many forums, but I wanna make it work with GeoJSON-Points and I haven't found ...
1
vote
3answers
164 views

How to load geojson vector tiles from mapbox id?

I have some data hosted on mapbox and I'm trying to load it as tiled geojson into Leaflet from its mapbox id (I just want to get plain geojson, I'm not trying to render it). How can I achieved that? ...
0
votes
1answer
49 views

Positioning leaflet divIcon when adjusting size using css

I am using the L.divIcon when using iconSize:null which is causing iconAnchor:[0,0] to not be recognized,my code looks like this: var divIcon =L.divIcon({ className:'current-location-icon', ...
2
votes
1answer
45 views

Control to select data source on Leaflet map

I am building a map using leaflet. My data source looks something like this: var districts = {"type": "FeatureCollection", "features": [ {"type":"Feature", "geometry": ...
0
votes
1answer
95 views

Adding comments using leaflet draw

I am working on an application that will leverage the leaflet draw plugin so that a user can open my map and drop comments in the form of markers. Then the user can click submit and it will serve me ...
0
votes
1answer
119 views

Adding drop-down menu on leaflet map instead of L.control

I have created a choropleth map including several layers from the same geojson layer which is turkeyData in my case.I actually did it and it works fine. But I like to change the standart leaflet ...
2
votes
0answers
56 views

Batch create leaflet webmaps in QGIS

During a project on the spider fauna of Greece, we have to face the design of distribution maps of the species. A good tool to work with is the design of leaflet webmaps to be used on the website ...
1
vote
1answer
98 views

Compare several Overlay Layers with Base Layer in Leaflet

I write web app for comparing several Overlay Layers (in example OSM tile layers) with Base Layer (in example Bing Aerial layer) in Leaflet. It's work in 'first loaded' level zoom. But when I ...
2
votes
1answer
140 views

Hide/Show route layer in Leaflet when click on button (Easy Button plugin)

I have a Leaflet map with button (Easy Button plugin https://github.com/CliffCloud/Leaflet.EasyButton). When click on button on map added route layer (plugin ...
1
vote
1answer
44 views

CartoDB SQL and returning values

Right I've got this JS function function AreaCompare(sql, UIDfield, Geogname, Table, sourceName, sourceID, destName, destID){ CompareObj = {}; CompareObj.sName = sourceName; ...
1
vote
1answer
72 views

How to create and serve map tiles?

I have shapefile which is too large to be served as vector. Also, I need it only as background tile, not as layer with attributes. I thought of creating tiles in MapTiler as I already bought it. I ...
1
vote
1answer
40 views

Is the data supplied to Google Maps or leaflet.js javascript rest API is private

I have a dataset which has to be used for internal/intranet web application. Is the data supplied to google map javascript api to draw map as well as to show meta information through markers is ...
1
vote
1answer
89 views

Add svg filter to paths created by leaflet?

If I were to create a simple inline svg, I could modify paths to have a drop shadow or a blur by creating a <filter> within a <defs> grouping. However, Leaflet dynamically generates the ...
0
votes
1answer
152 views

Adding a search box to a Leaflet.js example

Consider the example in the following link for Folium: US Employment visualization per county. The result looks like what you see below:     I would like to add a search box to it to be ...
0
votes
1answer
108 views

How to switch base layer programmatically in MapBox/Leaflet

I have multiple base layers, and need to switch them programmatically, dependent on various actions and states in my app. Can't find how, for the life of me. thanks!
0
votes
0answers
37 views

White tiles Leaflet

When i run the function below, i get white tiles in browser:(Leaflet) function areas() { var nexrad = L.tileLayer.wms('http://localhost:8080/geoserver/pgrouting/wms', { layers: ...
0
votes
1answer
237 views

Change marker's size by with zoom in Leaflet

I get stuck with changing my marker's size when zoom changes in my Leaflet code. It's a simple map with a metro stations overlay coming from an ArcGIS Server. The markers are coming from that same ...
0
votes
3answers
84 views

Get basic image/utf grid tile URLs from CartoDB visualization?

I'd like to add the layers from a CartoDB visualization to a Leaflet map directly (NOT through CartoDB.js). My visualization has one image tile layer generated from data, and one utf grid tile layer ...
0
votes
0answers
32 views

Any way to make leaflet.draw polyline finite (i.e. max) distance?

Does anyone have an idea of how I could force a maximum distance when creating a polyline with leaflet.draw? In other words, I would like for the user to only be able to draw a line UP TO 1000 miles. ...