An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps
35
votes
7answers
5k views
How to create Vector Polygons at the same amazing speeds GISCloud is able to render them?
EDIT (outlining new bounty added):
I have added the largest bounty possible to this question in hope of getting a very detailed answer. Your solution should outline a step-by-step guide utilizing open ...
21
votes
3answers
3k views
Should I use OpenLayers or Leaflet?
I was debating with one of my collegues on OpenLayers v/s Leaflet. I made a point that OpenLayers is much better API if we wish to build a project, where you need direct connectivity to the Geoserver ...
12
votes
4answers
261 views
Comparing two maps with nice web interface?
Is it possible in Leaflet or OpenLayers to compare two maps with a bar to slide between the two?
Examples include:
...
12
votes
3answers
592 views
Database for offline slippy map tiles
I currently have an offline HTML5 map application (built on Leaflet & KendoUI with custom additions) that has an app manifest and works fine on multiple platforms. However, I am hesitant to use ...
11
votes
8answers
6k views
How to Create Animated Cluster Markers in OpenLayers/Leaflet?
I want to use Leaflet due to the smooth transitions which Openlayers seems like they can't match. I specifically require the ability to cluster markers with custom styled marker groups.
The best ...
10
votes
3answers
925 views
Understanding web mapping tools
Before I start, this is going to be a general question but with specific cases. I've been trying to understand GIS tools and applications to achieve the following:
Build my own basemap
Publish the ...
10
votes
3answers
2k views
Open source alternatives to Google's StreetView engine?
I am looking to create an open source javascript app using either Leaflet or OpenLayers. Is there any way to implement panoramic views (similar to Google's StreetView) into either of these, or any ...
9
votes
4answers
624 views
Visualizing large datasets with Leaflet
When using Leaflet to visualize a large dataset (GeoJSON with 10,000 point features), not surprisingly the browser crashes or hangs. A sub-sample of 1000 features from the same dataset works ...
9
votes
2answers
646 views
How can I make a polyline wrap around the world?
I am using leaflet maps to create a representation of a round-the-world challenge. I would like to add a polyline which heads east from tokyo and then appears west of south america on the map - but ...
8
votes
5answers
3k 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 ...
8
votes
3answers
2k views
Does Leaflet JS API provide a Geocoding service?
I am considering replacement of Google Maps with Open Street Maps and the Leaflet JS API. Does the Leaflet JS API provide a Geocoding service?
8
votes
3answers
311 views
Chart inside pop up window in Javascript
How to show a chart inside pop up window? I'm using Leaflet JS, which has support for raphael plugin http://dynmeth.github.com/RaphaelLayer/. Is it possible to create a div inside popup window? I was ...
8
votes
3answers
1k views
Examples of leaflet interactive mapping applications
I would like to develop a simple mapping application. One where users can digitize lines, polygons and points and attribute the features. The attributes will then be stored in a database for later ...
7
votes
1answer
165 views
Generating Heatmap from PostGIS
I have GIS data in a PostGIS data base and would like to generate a density map and display them on a Leaflet/Google Maps.
Question: What is the recommended/typical method for doing so, without ...
6
votes
1answer
3k views
How to get Leaflet interactivity from Geoserver WMS?
I have geoserver serving shapefiles as a WMS into Leaflet.
I'd like to add interativity that shows a popup with WMS attributes in the Leaflet map when the user hovers over or clicks on a WMS feature.
...
6
votes
3answers
4k views
Creating a Bing and Google Tile Layer for Leaflet
I want to use the Leaflet Javascript Library to display both a Google and Bing Tile Layer, though I'm unsure how to construct the url. The documentation shows an example using OSM:
var cloudmadeUrl = ...
6
votes
3answers
408 views
How do I stop event propagation with rightclick on Leaflet marker?
I didn't find a rightclick event in Leaflet markers so I started listening to the mousedown event. In the method that resolves this event I check
if (event.originalEvent.button == 2) {
...
6
votes
1answer
602 views
How to configure custom scale in Leaflet?
I have a custom WMS tileset generated using ESRI ArcGIS Server.
I have successfully configured an OpenLayers page to display this basemap. The code is as follows:
var map = new ...
5
votes
4answers
300 views
GeoJSON too bulky - what to do?
I am using leaflet.js to allow web users to select a region. Valid regions are US states, Canadian providences, and world countries (except for US and Canada). I constructed a shapefile myself using ...
5
votes
2answers
2k views
Adding/Removing Leaflet GeoJSON layers
I'm trying to show different GeoJSON layers at different zoom layers using the Leaflet API. I can load and display all three layers at once (though I don't actually want them all to show at once). I ...
5
votes
1answer
475 views
What server and API to use for displaying complex polygons with dynamic symbology?
Background
I need to interface a map into an existing website which allows the user to query a database and which currently results in a table listing population statistics per county.
For example, ...
5
votes
1answer
476 views
Working examples of Leaflet/Polymaps with GeoJSON tiles generated from Tilestache using Shapefiles?
I'm looking to create choropleths using GeoJSON tiles generated from ESRI Shapefiles by TileStache(or similar), in either Leaflet or Polymaps. So far reading and drawing GeoJSON from both Leaflet and ...
5
votes
2answers
180 views
Tilemill Dynamic Tile Generation
I have recently used Tilemill and I wish to implement it for dynamic tile rendering.As I've seen an CartoDB doing in cloud system,they can query & generate dynamic tile for request with UTFGrid.
...
4
votes
2answers
862 views
How do you convert OSM XML to geojson?
I want to take the XML output of a Xapi query and display it using leaflet or polymaps. How can I do that? Is there an easy way to convert XML to geojson
4
votes
1answer
227 views
Existing ArcGIS Rest Services - What platform to use for building mapping application?
I have clients that have an existing ArcGIS Server. Map layers are published as rest services and I am going to build a mapping application that displays their datasets. Functionality should include ...
4
votes
1answer
438 views
Leaflet drop markers animation
Is it possible to do drop markers on the map like in google maps (https://google-developers.appspot.com/maps/documentation/javascript/examples/marker-animations-iteration) in leaflet
4
votes
1answer
1k views
How to change Leaflet Map panes layering order (z-index)?
Leaflet maintains that the Map panes elements contain all layers added to the map. The difference between many of the Map panes is strictly the z-index order of layering.
I would like to use a ...
4
votes
1answer
564 views
Leaflet: How to move the layer-control menu?
This might be a silly question, but I could not find a documented way to achieve this.
I'd like to freely position the layer-control menu, probably to the top left near the default zoom-in/out ...
4
votes
1answer
2k views
How to show a popup on mouse-over, not on click?
Is it possible in Leaflet that popup opens on mouse-over, not on click?
This is working for just one marker at a time, but I need it for a bigger number of markers:
marker.on('mouseover', ...
4
votes
2answers
116 views
Simplest way to make web maps with lots of shapes
I have some computed data about US Census blocks. I'd like to make a web map to display that data. I've searched around and found various tools, but I can't tell what is the simplest "lazy man's ...
4
votes
1answer
130 views
binding nested arrays as geojson popups in leaflet
I am struggling with geojson popups in leaflet.js
I have nested arrays as properties for my features -
an example would be counts of fish caught at a location (not my actual project data!)
...
4
votes
1answer
690 views
Auto zoom on multipolygon with leaflet
I have a geojson with a multipolygon and I want to fit this multipolygon to the map. The map center only on one polygon not on the multipolygon.
Here is my script
var map = L.map('map',{ ...
4
votes
0answers
76 views
How to download Leaflet vectors in GPX format?
I would like to use the leaflet.draw plugin to allow users to digitize vectors on the map. At the end the data should be downloadable as a GPX-file.
Is there any sample that shows how this can be ...
3
votes
1answer
564 views
What is the difference between Leaflet and Mapbox?
What is the difference between Leaflet and Mapbox, and how are they used together?
Like the API and what exactly are they and is Mapbox using Leaflet?
3
votes
1answer
326 views
How to save a Leaflet or OpenLayers map for opening later?
Can a webmap state be saved to a text file or something for restoring later?
Like if I set up a map with a particular zoom and choose my layers and draw a polygon or two, can it be saved to a file and ...
3
votes
1answer
337 views
How to avoid corrupt geometries when translating between TopoJSON and GeoJSON?
I'm trying to display some geojson vector features on a leaflet map.
The size of my GeoJSON is too big (25.4mb of data, 8.47mb gzipped), so I'm trying to use a TopoJSON format to reduce the size ...
3
votes
2answers
506 views
Leaflet / Google Map baselayer / markers not visible [solved]
New to Leaflet, currently trying to migrate a project from native Google Maps to Leaflet; having been drawn to Leaflet by the layer management and options of using better 'roadmap' style basemaps.
...
3
votes
1answer
101 views
GeoServer 2.3.0 Proxy Setting
I've upgraded to GeoServer 2.3.0 running on Apache Tomcat 7.0.39 on my host WebFaction. My websites and GeoServer are on same host but different ports. How do I go about setting a proxy so that my ...
3
votes
1answer
78 views
How to set up a maximal zoom for polygons in Leaflet?
How to set up a maximal zoom for some layer, for example state polygons? I need that my US polygons which represent states have maxZoom 6, and when zoomed higher than 6, that US counties show up ...
3
votes
1answer
273 views
Leaflet and EPSG 4326 Projections
Leaflet says it supports EPSG 4326 (Plate Carree, aka ll84) projections. I think it does, but take a look at these two jsfiddles:
http://jsfiddle.net/drysg/cBzVc/ - This is the original 3857 web ...
3
votes
1answer
265 views
reusing cached tiles with leaflet, mbtiles and mbtiles-php
I am using Leaflet and infostream's fork of mbtiles-php to serve MBTiles stored on my server. I'm using a Leaflet layer group (and a layer control) to serve two MBTiles files. When I toggle between ...
3
votes
1answer
429 views
Click link inside Leaflet Popup and do javascript
I have a leaflet map up and running. It overlays a series of polygons (via GeoJSON) on the map and attaches popups to each polygon. Each of the popups display information about that polygon.
I'd ...
3
votes
1answer
1k views
How to add a geoJSON layer to leaflet map?
i am newbie in leaflet & its geojson features...
I am trying to test leaflet's functionalities. In fact i have built a map and its layer:
var map = new L.map('map', {scrollWheelZoom:true, ...
3
votes
0answers
104 views
Is it possible to create filters based on attributes for markers in Leaflet?
I need to create filters based on attributes of markers. I have markers defined this way:
var locations = [
['AB11 5HW','17','A',57.147701,-2.085442 ] ,
['AB11 8DG','3','B',57.129372,-2.090916 ] ...
3
votes
0answers
328 views
leaflet - Drawing line following the road
Short version:
What I wish to be able to do is drawing a polyline along part of a road. In that way marking certain houses, along this road.
Long Version:
I have several houses that I wish to mark ...
3
votes
0answers
280 views
How to serve OpenStreetMap Tiles locally using ArcGIS Server 10?
We want to serve OpenStreetMap Tiles locally using ArcGis Server 10 to use as base maps in our ESRI Silverlight and Flex GIS clients.
We've downloaded our regions OSM file and created PNGs using ...
2
votes
2answers
181 views
Do the recent developments in the Google Maps API replace necessity of OpenLayers?
I think the main drawback of the Google Maps API is that we can't add our own vector data or raster imagery as one of the layers in the map. Is this correct? Or is there any alternative in the Google ...
2
votes
3answers
139 views
get latitude & longitude as per address given for leaflet
In my project I am using leaflet to display points.
I am getting address from my database & want to show point for that particular address.
I dident found anything which will give me latitude ...
2
votes
1answer
163 views
leaflet geojson coordinate problem
I just started to play with leflet/geojson a little. But my coordinates are not rendered properly and I have no clue what is going on.
My coordinates are: 52.23943, 4.97599. They work correct with ...
2
votes
1answer
275 views
How to insert new line text in popup
I'm using Leaflet Marker Cluster and I need to show five different lines in a popup. But when I write this, they are all in the same line. Can someone help me to be one under another?
var a = ...



