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

learn more… | top users | synonyms (1)

2
votes
0answers
18 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
45 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
13 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
19 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
26 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
23 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
26 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 ...
0
votes
1answer
22 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
24 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
36 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; ...
0
votes
1answer
35 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
0answers
16 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
28 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
59 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
37 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
24 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
78 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
34 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
12 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. ...
1
vote
1answer
61 views

How to add Geoserver WFS to Leaflet JS Application

I have a PostGIS database and have successfully consumed a table into GeoServer and published a WFS. Are there REST endpoints available for these WFS' akin to ESRI's feature services? How are ...
0
votes
0answers
26 views

Leaflet marker coordinates to GeoServer

I'm trying to display a Circle using GeoServer+Leaflet(HTML).I am using an address search tool which displays a marker. I would like to use the marker coordinates as center of the circle with leaflet. ...
0
votes
0answers
30 views

Loading minimap in Leaflet

I use this for loading google basemaps https://gist.github.com/crofty/2197042#file-leaflet-google-js , this to switch basemaps https://github.com/ismyrnow/Leaflet.groupedlayercontrol and this as ...
1
vote
1answer
36 views

The ordering of layers with CartoDB/Leaflet

Just want to get a bit of clarity about this query from before: Layer order in CartoDB I have a map with a Basemap and I want to draw points between features based on layer featureclicks, The good ...
1
vote
0answers
46 views

Load Maperitive's tiles.json into HTML for getting bounding parameters

I've created a local tileset of a city in Maperitive, and a basic leaflet.js webpage to browse it offline. There's a tiles.json also created by Maperitives that has all the essential bounding and zoom ...
1
vote
1answer
29 views

Most efficient method to get national-level data displayed with Leaflet

I'm looking for the most efficient way to get a national or U.S. and Canada level dataset working with a JS mapping library. My problem is there's a myriad of technologies that seem like they can ...
1
vote
1answer
49 views

Showing link for every city at different zoom levels using Leaflet?

I have a Leaflet map that I am using to render a map of the U.S. The map will have specific zoom levels. For example, when the map first loads it will show major U.S. cities. Then if you zoom in it ...
2
votes
1answer
35 views

d3 + Leaflet apply class value from geojson data

I have a geojson file that I'l able to draw just fine with D3 + Leaflet. I'm having trouble applying a class to the svg objects with a value from the geojson file. Each feature in the geojson file has ...
0
votes
1answer
28 views

Changing cartodb.createLayer source

I'm applying a Carto named map layer to an existing Leaflet map similar to: cartodb.createLayer(map,{ type: 'namedmap', user_name: **username**, options: { ...
0
votes
1answer
32 views

iterate over cluster in markerCluster : leaflet

i need to iterate over all clusters that are currently present in markercluster using leaflet. there's a method called markercluster.getClusters() in googlemaps to do this job. is there something ...
3
votes
1answer
35 views

Put LeafletJS geoJSON's into a MySQL database through PHP

I'm doing a project that will let users manipulate a map through LeafletJS, creating circles and polygons on top of the map. I need to gather these inputs for later analysis, using a MySQL database ...
1
vote
1answer
33 views

How to add GeoJSON layer with GraphHopper?

I have a GeoJSON file containing some POI that I would like to be able to display within a separate layer with GraphHopper. But after several tries and search over internet, i can't manage to get a ...
1
vote
1answer
43 views

Leaflet.js add/remove control from Map

I am attempting to combine two fine plugins Leaflet Easy Button and Leaflet Routing Machineand i can't quite get it to work. what I want seems simple enough, I would like to have a button that when ...
1
vote
1answer
35 views

Leaflet pop up fade out animation

When a popup is opened with Leaflet a nice fade in animation is played. When you close the popup however it abruptly disappears. Does anyone know how to play a fade out animation when closing the ...
1
vote
0answers
22 views

Leaflet CRS.Simple or CRS.EPSG3857 conversion Problem

I'm using v-leaflet (0.61) , a vaadin plugin, to visualize some layers over a map. Clicking on the map, I create a wms query to geoserver. The query needs some parameters and one of them is the bbox. ...
0
votes
2answers
43 views

create a draggable circle in leaflet

hey guys can u please tell me how to create a circle in leaflet which can be dragged across the map.I do not want to use Circlemarkers as i want to specify radius in meters and also the size of ...
2
votes
2answers
51 views

Prevent Leaflet from requesting non-existing custom tiles

I have created custom tiles using TileMill. extracted tiles as png images and adding them on base layer. using following code var venu_map = new L.tileLayer('static/b18/{z}/{x}/{y}.png', { ...
0
votes
1answer
14 views

Why is my Leaflet JS App Canvas moving around?

I have an Leaflet JS app, and when a user clicks on the canvas, the entire world is able to move causing the unsightly gray background to be shown. http://jsfiddle.net/nos5gbjh/
1
vote
1answer
29 views

Leaflet elevation profiles with multiple GeoJSON features

I have a map which loads a GeoJSON containing two features (lines). I would like to use Leaflet Elevation plugin to display an elevation profile for each of those lines. The problem with my code is ...
0
votes
1answer
29 views

Leaflet Marker Cluster not appearing

I would like for my points to cluster using L.markerClusterGroup. I am receiving a 200 status; but nothing appears on my map. I have commented out my markers which appear when uncommented. ...
0
votes
1answer
30 views

serving UTFgrid information made with mb-util with leaflet

I've created the mbtiles file with tilemill and exported it on my ubuntu webfolder with the following command: mb-util --scheme=xyz /folder/tile.mbtiles /var/www/html/my-tiles To get utfgrid ...
0
votes
1answer
36 views

Leaflet controls are not appearing with Promise function

I am not receiving any errors in the console either. I am attempting to use the Promise function instead of callback. var map; var centerlatlng = L.latLng(38, -98); var aDiv; var geojsonfeatures; ...
0
votes
1answer
42 views

Leaflet: performant handling of POIs all over the world

When you have a leaflet.js application, such as my experimental toy for xkcd GeoHashing (look at geohashing.cgi plus mirkarte.js), you have to draw points all over the world. In the GeoHashing case, ...
1
vote
1answer
45 views

Unable to integrate CartoDB into Leaflet Map

This is my first day with CartoDB, trying to integrate our visualization into our existing Leaflet implementation, and having issues. In short: no visualization. Below is a sample of the problem ...
0
votes
1answer
43 views

ST_AsGeoJSON function slow in PostGIS

I'm currently trying to pull neighborhood data from Zillow's Neighborhood page (http://www.zillow.com/howto/api/neighborhood-boundaries.htm) and then load it onto a leaflet map, openstreetmap. I ...
0
votes
1answer
25 views

Overlay layer not displayed above Base layer for custom panels of Leaflet.groupedlayercontrol plugin

I created simple web map (example http://jsfiddle.net/q77wk17z/1/) with one Overlay and several Base layers using Leaflet.groupedlayercontrol plugin. Overlay and Base layers divide on separate layer ...
1
vote
0answers
20 views

delete the markers in routing mode of MapQuest

I am using MapQuest plugin for LeafletJS. After it draw the map, it sets a marker on each stop point on the route, e.g: A, B, C, D, etc. Is there a way to remove those markers, I just need blue ...
1
vote
2answers
57 views

'Home' button leaflet map

is there a possibility to have a kind of home button on my map which will zoom to my initial map view or a specific defined position, resp.? Any help welcome! Thanks
0
votes
1answer
42 views

how do i change my map's styling in mapbox using mapbox.js?

i really searched for it high and low but couldn't find it!! I am using mapbox.js for this. i am working on the project which requires to change the styling of map, eg: area,land and water colors on ...
3
votes
0answers
33 views

What is the openlayer.js alternative of unloadinvisibletiles of leaflet.js

I am using open layers with a tile server. I want to load maps while panning and destroy the loaded region when out of screen (Alternative to unloadinvisibletiles of leaflet.js) How am i suppose to ...
0
votes
1answer
31 views

Leaflet - what to do when your maptiles don't load?

I'm using Leaflet, and using OSM's tile.openstreetmap.org tile server. However, sometimes my application does not load the maps tiles. It seems OSM's servers are having some problems sporadically, ...