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

learn more… | top users | synonyms (1)

0
votes
1answer
130 views

Does the experimental QGIS2leaf plugin not work on mac OS?

I am trying to get the experimental QGIS2leaf (Leaflet web maps) plugin to work on my macbook air (2012, Mavericks OS), but when I open the outputted index.html file, no interactive image shows up in ...
1
vote
1answer
207 views

passing geocode results object to another file

I'm using a geocoding plugin (Leafet.GeoSearch) on a map and I'd like the results, being the LatLng point coordinates, etc available as a parameter for GeoServer cql filtered calls. It doesn't seem ...
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
2answers
409 views

Polygon intersection with bounding box with polygon's holes intact

I am trying to serve GeoJSON FeatureCollection tiles with each feature's geometries trimmed to the tile boundary. I am working on a Leaflet plugin to re-assemble the geometries. It works by building ...
0
votes
1answer
72 views

GeoTIFFS on Geoserver are served slowly, at too low resolution

I have a bunch of large, high resolution GeoTIFFs, that I am serving using GeoServer. I also have a prototype client I wrote using Leaflet. The resolution of the TIFFs is quite high, but despite that ...
1
vote
1answer
143 views

Zoom variable or pixel distance

I have query by distance working in a framework that generates a list of features within a fixed distance of a clicked feature. I would like to make the queried distance variable based on either: ...
6
votes
1answer
184 views

Moving a shape around the earth while maintaining the proper projection

What is the transformation needed to be taken on every data point of a shape to rotate that shape around the globe. I'm trying to figure out the math behind this kind of transformation so I can ...
2
votes
1answer
388 views

How to get data from TileMill tileLayer properties in Mapbox for click/hover

I've successfully used Leaflet to load a geoJSON polygon-shapefile with data, and added click and hover interactivity to the layer. For a large dataset, I switched to mapbox.js 1.6.1, used TileMill to ...
1
vote
1answer
64 views

How to link a text to a map

I would like to know if it is possible to link a text to a leaflet map. I would like to highlight a country in my map when the mouse is hover a word in my text. My map is created with leaflet library. ...
2
votes
1answer
222 views

JSONP working with Leaflet time slider

I would like to integrate the time slider into a JSONP geoserver. Here is the current code I have http://jsfiddle.net/qcwcrwge/26/ and I would like to use the time slider with a layer called ...
0
votes
1answer
19 views

Access index of a leaflet marker

I have seen some examples of this but they are not working for this situation. What I need to be able to do is when I click on a marker get the index of that marker to write to the console. The ...
0
votes
1answer
40 views

Leaflet: Map focus issue after enabling a custom ZoomToArea control in Firefox

I'm trying to add a Zoom-to-Area control to Leaflet by extending the built in Control.Zoom plugin, but I'm fighting some "map-loses-focus" issue that affects only Firefox. The function works as I ...
3
votes
1answer
47 views

Open popups in a fixed position with Leaflet

I have create my map with Leaflet exactly how I want it (with my markers and externals links). I would like to have the popup always fixes in the top right hand corner (for an example). Is there any ...
0
votes
1answer
19 views

tileLayers grouped in layerGroup not displaying

I am trying to combine 3 tileLayers (Esri map services for imagery, boundaries, roads) into one layerGroup so that it can be chosen via the layers control. This jsfiddle shows the three tileLayers ...
0
votes
0answers
28 views

OpenLayers3 Heatmap: Which are the availables geotypes to load?

I'm developing a heatmap and I'm trying some of the availables libraries. Leaflet GoogleMaps OpenLayers I'm using a geoJson file with several amounts of points. Since Leaflet allow me to assing a ...
0
votes
0answers
24 views

Custom routes and nodes for Leaflet

This is probably far-fetched to ask but let's say you have a custom map using Leaflet. For me, my map is over here. As you can see, it's a neatly-designed yet clear map that is 30,000 pixels wide. ...
0
votes
1answer
43 views

Transparent custom legend with mapbox/leaflet.js

I am building a map with mapbox.js. I have created a custom legend and want to make it partially transparent, but can't figure out the right CSS. Here is my legend html snippet: <div ...
1
vote
1answer
135 views

Leaflet and census block data: not displaying

I am new to leaflet and am trying to load a geojson file showing census blocks and associated information for a city in CA. It is a small city and not too many census blocks. I cannot get the popup ...
0
votes
0answers
36 views

Extend/change Leaflet Marker class to put DivIcon markers in another map pane

Leaflet uses different panes for different content. Markers are in the markerPane div and Popups are in the popupPane. I find the DivIcon class a lot easier to use than the custom layer because of ...
1
vote
3answers
165 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? ...
14
votes
10answers
11k views

How to convert ArcGIS Server JSON to GeoJSON?

I'm creating a web map using Leaflet, and I want to be able to grab feature layers from our ArcServer. I have successfully been able to retrieve a feature class as JSON, but Esri's JSON objects don't ...
0
votes
3answers
90 views

Leaflet is behaving unexpectedly when trying to load more than one layer

I had a hard time trying to create a good title for my issue since it is a little hard to explain. But I will do my best. Basically what I'm trying to create a web map to show three distinct layers, ...
2
votes
0answers
21 views

How to change layer order in leaflet.js

I would like to be able to change the order of the layers in leaflet. I tried implementing two leaflet plugins in order to change the layer order. First I tried leaflet-control-orderlayers, which ...
1
vote
2answers
2k views

How I can load tileLayer in Leaflet framework using local tiles?

I'm using file:///C:/path/tiles/{z}/{x}/{y}.png like url of tileLayer but it doesn't work and no error is shown. var layer = new L.tileLayer("file:///C:/OSM/tiles/{z}/{x}/{y}.png", { minZoom: ...
1
vote
1answer
355 views

Leaflet Draw - add title to marker or shape?

I am trying to create a participatory mapping site where users can draw pts, lines and polys using Leaflet draw. Is it possible to create a pop window where users can add a title or description of ...
1
vote
2answers
120 views

Turf.js only with Mapbox.js?

After trying turf.js with plain ole leaflet and getting confused because the most basic stuff wouldn't work, I'm thinking that turf.js requires Mapbox.js and access token. Can anyone confirm or deny ...
0
votes
0answers
63 views

Fetching postgis data through php json and passing to leaflet map

I am new to this and trying to explore leaflet and geojson a bit. Please help me with this. This is my php page which I am using to fetch data from PostGIS. (the data opened successfully in the ...
0
votes
0answers
34 views

QGIS2Leaf - Limiting the number of features loaded

I'm using the awesome QGIS2Leaf plugin. As others have noted, Leaflet slows down when the number of features becomes too large. ...
0
votes
1answer
19 views

How can I incorporate custom/image markers into Leaflet MarkerCluster

I'm using Leaflet MarkerCluster. It works fine, however, when you drill down to an individual marker (not cluster) I can't figure out how to replace the standard marker with my own custom icon/image. ...
0
votes
0answers
43 views

Can I print bing maps using mapfish-print and leaflet.Print.js?

var printProvider = L.print.provider({ method: 'GET', url: "localhost:8080/print-servlet-2.1-SNAPSHOT-IMG-MAGICK/pdf", autoLoad: true, dpi: 300, showLayouts: true }); var url = ...
1
vote
1answer
38 views

Source for cloud cover map layer over UK

I'd like to add a layer to display historical data on cloud cover in a Leaflet project I'm currently working on. This is specific to a given day in 2012 for a city in England, and ideally I'd like to ...
0
votes
1answer
156 views

How to query postgres with gis to get GeoJSON for GeoJSON tile layer?

I have a postgres database with one table like the following: CREATE TABLE post_pl ( gid serial NOT NULL, zip character varying(5), zip_n integer, city character varying(50), geom ...
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 ...
1
vote
1answer
237 views

leaflet and image popup from qgis export

I am a novice in using leaflet, I exported my map layers from qgis to a working leaflet map. i am trying to modify the popup to use the attribute so as to get an image popup. i am however stuck as i ...
2
votes
0answers
2k views

Having issues getting Leaflet “L.tileLayer.wms” to display Geoserver WMS data

I've set up Geoserver and WMS capabilities to host some weather data files (satellite data for example). Here's an example file: ...
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
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
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 ...
2
votes
1answer
153 views

Removing Places from OSM [closed]

Doe is exists a way to remove all the places from the OSM map? Also like shops, bars, restorations, hotels etc. I wish to use a maps with a less info. Is it possible to do this from the original OSM ...
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 ...
2
votes
0answers
153 views

Loop through a marker cluster using Leafletjs

I have a variable like this var cubbon = new L.MarkerClusterGroup() then i added many markers to this variable. now i like to create a function() and loop through the variable and find out a marker ...
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
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
1answer
251 views

Make two layers editable in leaflet draw

I use Leaflet draw to draw markers and polygons on a map. The created features are saved to two separate feature groups. One feature group for the markers and one for the polygons. Now I want to edit ...
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
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
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 ...
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 ...
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> ...