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

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

load json url into a leaflet map

Based on this example http://labs.easyblog.it/maps/leaflet-layerjson/examples/overpass.html I'm trying to load the following url into a Leaflet map ...
1
vote
0answers
15 views

Different Leaflet fillcolors for different layers

I have a leaflet map set up with two layers and I want them to use different colorization functions to color the choropleth shapes. My shapes are set up in layers like this: var povertyLayer = ...
0
votes
0answers
5 views

How to keep leaflet tooltips within visible map view

I have a map with panning and zooming disabled, creating a bounding box. This map has a geojson layer with features and tooltips displaying underlying data. The issue is when the user mouses over ...
0
votes
0answers
9 views

Leaflet map altering page scroll behavior

When scrolling down a page and past a leaflet map, if the user's mouse cursor is inside of the map, then the scroll bar stops and the browser window becomes stuck on the map. Is there a way to ...
2
votes
1answer
16 views

Cartodb add basemap switcher

I currently have a map created entirely in the CartoDB editor, including custom map. For some reason it doesn't allow you to add an attribution in the editor but thats a different problem. So my map ...
0
votes
0answers
14 views

Zooming into State using R Leaflet

I am using R LeaftLet package to create a interactive choropleth of the US Map. There are several tutorials online and I am able to create interactive state level map with pop up and zoom. Also I ...
0
votes
0answers
17 views

Is it possible to set the extents in which labels appear in Leaflet?

I'm fairly new to leaflet and web mapping in general. I was curious if there is a way to set labels to only appear at a certain range of extents. The point data layer I have clusters too much ...
2
votes
1answer
17 views

Leaflet cirlceMarker changes with zoom

I was under the impression that L.circle changes size with zoom, but L.circleMarker should remain the same radius as you initially set? I've setup an example here, which ever I choose the circle ...
2
votes
1answer
38 views

Proj4 for EPSG3857

I am using leaflet and the R library sp. The CRS from my leaflet map is EPSG3857 - WGS84 Web Mercator. I am retrieving the coordinates of my current map view with getBounds(). For further calculations ...
2
votes
1answer
55 views

Submit form information from a leaflet popup to MySQL table

I have a leaflet map and I want to have the user fill out a form in a leaflet popup and upon clicking the 'submit' button - the information in the form will be inserted into my MySQL database. As a ...
2
votes
1answer
13 views

Leaflet polygon (multi polygon) to CQL equivelent

I am using leaflet with geoserver. I want to set up a CQL filter to do an intersect but having an issue with getting the geometry from leaflet polygon to cql polygon. For instance, the feature has ...
0
votes
0answers
21 views

Missing Leaflet icon with Html2canvas

I am using Html2canvas to capture images from a map viewer and Leaflet to add custom icon marker. The origin of the marker is at the top-left corner so when it is added to the map, the geographic ...
2
votes
0answers
10 views

Click event returning wrong Y container point in Leaflet

I am using QGIS Server and Leaflet to display geotiffs on my website. I have created an onMapClick function which uses a GetFeatureInfo request to QGIS Server which returns the value of the geotiff in ...
2
votes
0answers
15 views

Can we set the latlng start point : leaflet

I am working with the leaflet api.... I was lately, trying to figure out how to change or set the latlng start point in leaflet map..... Currently i am working on use image as map,,,,the ...
0
votes
0answers
10 views

Calculating pixels in leaflet

I am working with leaflet plugins, calculating distance between two points of a polyline or whole distance of joint/multiple lines Work : I set up the script to measure the distance in meters when ...
0
votes
0answers
15 views

Qgis2Web wfs data doesn't show

Hi i've eneabled the plugin qgis2web. after getting one WFS-layer in de QGIS I started the gis2web plugin. Because it is a wfs-layer and i want leaflet to use that wfs i don't check the Encode to JSON ...
4
votes
4answers
76 views
+50

Export to KML option using Leaflet?

I am very new to this GIS thing. I have to integrate export to KML option in one of my project. I could not see this option while googling. Is there option to do this? <!DOCTYPE html> ...
0
votes
0answers
15 views

How to bind popup in the centre of a layer react leaflet

I have a <Map> component with <Geojson> component with in it. I want to bind a popup in onEachFeature method. I have successfully done layer.bindpopup(); but don't know how to bind it to ...
2
votes
0answers
16 views

Cant' get the correct measurements : LeafLet

i am working with the simple app Beta Here The application is using leaflet plugins/api.... User draw a line(poly-line) on the map/image and then enter the distance between two points.... Working ...
0
votes
0answers
8 views

how to bind custom marker controls to map : leaflet

I am working on map control app using leaflet plugin .... I added a custom button for marker in side toolbar.... Target I want to put marker on map when i click on that button....in other words i ...
0
votes
0answers
17 views

How to get number of pixels between two points

I am working with the simple app which is using leaflet plugins.... I want to get the number of pixels when i draw a poly-line on map(from one point to another using poly-lines).... Actually i don't ...
0
votes
0answers
11 views

Sub catagories in leaflet layercontrol

I am trying to create subcategory in layers which looks like below and trying to display the Banks on basis of their names. I created a new control customLayerSwitcher = L.control({ ...
0
votes
2answers
40 views

Leaflet MapBox addlayer

I'm newbie in coding and I'm trying to modify some downloaded GitHub code to make customized application and display my data. AddLayer function is making me desperate. I'm trying to add data from ...
1
vote
2answers
36 views

Displaying ESRI REST services in MapBox?

I'm working on a web site that displays a couple of maps, with generic base layers, over which we display a number of customer-configurable overlays. We've built it using MapBox - currently version ...
1
vote
1answer
38 views

GeoRSS in Leaflet

is it possible to integrate GeoRSS in Leaflet and how? Couldn't find any hint. For example this georss: http://www.geonames.org/recent-changes.xml Which looks like.. <?xml version="1.0" ...
3
votes
0answers
60 views

Using Waze map tiles with Leaflet

I came across this Map Comparisons where they have used Waze map tiles. I searched around and couldn't find any official documentation for using Waze tiles in leaflet. I couldn't even find their ...
0
votes
0answers
43 views

gdal2tiles: how to make filenames of tiles to represent xyz coordinates?

I'm converting ECW file to tiles using gdal2tiles. Right now the tiles and folders generated by gdal2tiles are named as numbers starting from 0 successively. The folder structure looks like: How to ...
0
votes
1answer
52 views

How to filter polygons in Leaflet using range slider

I have a map I'm working on with Leaflet that displays a choropleth of zip code-level data. One piece of functionality I would like to add is to allow users to use a range slider to filter out ...
0
votes
1answer
20 views

mapbox geojson + leaflet + custom markers

In the geojson file the following can be found for a marker (coming from mapbox geojson) "marker-color":"#1087bf","marker-symbol":"monument"} I would like to find a solution so monument will be ...
1
vote
4answers
57 views

Does Google Maps API or OSM provide location/place boundaries

I've been digging around today in Google Maps and Leaflet API's to find if there is an easy way to get these boundaries instead of needing our users to manually outline these things (like drawing ...
0
votes
0answers
11 views

Gis2web - QGIS plugin troubles

I have QGIS 2.6.1 and when I want to get some results using gis2web (by Tom Chadwin) plugin, in fact, to get a webmap in OpenLayers, it seems that plugin doesn't work properly. E.g. I have a point ...
3
votes
1answer
44 views

Leaflet + GeoJson = problem with style

I got my first leaflet + geojson project partly working! (even the popup with content from the geojson file!) but I still have a problem with style the geojson (export from mapbox) file has point, ...
0
votes
0answers
15 views

redraw canvas when add new overlay?

Good day! A little problem: how to redraw canvas when I add overlay layer? Firstly load osm map, then creates canvas. So when I push the botton and add another layer it looks like sandwich and canvas ...
1
vote
0answers
28 views

dynamic legend for tiles in Leaflet

Good day dear professionals! I have a little problem. I started to learn javascript and leaflet not so much time ago, and now I can work with layers, but creating controls that I need is to hard for ...
0
votes
1answer
48 views

Have to click twice to open popup leaflet

I am trying to make a map in which a marker can be clicked and a popup opens up with some information. I have successfully done all of that however my first click on any of the markers result in the ...
0
votes
0answers
10 views

How to show busy icon when leaflet api load tile images RSS

i like to know is there any way exist in leaflet api which i can fire when it load tile and when tile loading finish then another function will be called. i was reading leaflet api and found in this ...
1
vote
1answer
19 views

Leaflet js : text is not showing on map

here is my jsfiddle link http://jsfiddle.net/tridip/5abu963o/. i made provision so a yellow color text should be lying on map but not working. here is the js part only i like to highlight. $( ...
0
votes
3answers
42 views

Load a really big geojson to a feature layer in leaflet

I have this geojson file(about 60mB) that contains the administrative area boundaries. I want to make a chloropleth and give color based on each geometry properties value and add it to the ...
0
votes
1answer
33 views

Getting GeoJSON formatted properly for Leaflet?

I am trying to get data put on a leaflet map that I have set up. I am following this tutorial: https://www.youtube.com/watch?v=fDfkjx-VhLI I have all of the html, css and js scripts up and running, ...
2
votes
0answers
42 views

GTA V coordinates to LatLng

I'm here because I'm trying to create a GTA V map with Leafletjs API. In deed, I've got my tiles that are ready. But the aim is to put markers on the map by using GTA V in-game coordinates. To achieve ...
4
votes
2answers
76 views

Big data sets and challenges using the Leaflet client

I am using Leaflet to present around 90.000 data points. My test code is generated using the plugin QGIS2leaf in QGIS 10.10.1. I am using clustering and reviewing the code I can see that this is ...
1
vote
1answer
31 views

Leaflet map isn't loading in the correct location

I'm currently working with Leaflet and a dockable web framework called Golden Layout. I'm trying to load tiles into the map, but they are not loading properly and I'm not sure why. Currently, I have ...
1
vote
2answers
46 views

How do I toggle (add/remove) shapefile layers in Leaflet.js?

If I create a shapefile layer var ac_shpfile = new L.Shapefile("data/AC.zip", {onEachFeature: function (feature, layer) { /* Add some colors based on shapefile features */ }}); and then add it to ...
0
votes
0answers
39 views

Rendering OpenStreetMaps with GeoServer

My target is to have the whole planet to be available in the map client[leaflet.js/openlayers.js] but only a specific country loaded with roads etc. I have followed the steps below to setup my ...
0
votes
0answers
38 views

Click event on anchor tag does not update Leaflet map as expected

I'm having problems updating a Leaflet map from a click event on an anchor tag located within a Leaflet Control on the map. Chrome and Firefox on Mac seem to have identical problems, Safari is ...
0
votes
1answer
30 views

What causes the Leaflet JS Providers error; Uncaught Error: No value provided for variable {time}

I am using leaflet providers and attempting to add the NASAGIBS.ViirsEarthAtNight2012 to my layer control, my other basemaps load fine; but this one doesn't and returns the following errors in the ...
0
votes
0answers
33 views

Problem visualizing OSM's ways twice in leaflet

I have retrieving all types of data from a small B-box using the Overpass Api and i have populated Postgres(postGis) using "osm2pgsql" with the default style. I can extract the ways into geoJson ...
0
votes
1answer
30 views

Controlling map details shown using Leaflet and MapBox

I am building a map based chart using Leaflet (with MapBox). I would like to know if there is a way to control the level of details displayed on the map when zooming in. For example I do not want to ...
0
votes
1answer
31 views

Using Leaflet: How do I get it to display one popup based on a condition?

Using Leaflet: How do I get it to display one popup based on a condition. See below. basemap_0.addTo(map); var layerOrder=new Array(); function pop_thunder(feature, layer) { ...
1
vote
0answers
17 views

Leaflet Markercluster and Timeline in sync

So I have been trying to figure how to use the markercluster and timeline plug in in sync to show a temporal animation of points. As some of the point data overlaps a cluster is needed to be able to ...