An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps
0
votes
0answers
196 views
Leaflet L.LayerGroup and Legend for individual layer
I am using Leaflet.js and MapQuest maps; added base layer and added more than one layer using L.LayerGroup() after adding those layers using map.addLayer(LayerGroup); trying to add Legend for ...
0
votes
1answer
127 views
Geojson multipolygon doesn't work with Leaflet bindPopup?
I have polygon and multipolygon data in Geojson format and when I try to bind popup for polygon, it works perfectly, and when I try to bind it for multipolygon, it doesn't work.
Is that some Leaflet ...
1
vote
2answers
134 views
converted SHP to geoJSON - how to put this on OSM map?
I'm a beginner at this. I converted a shapefile to a .js file but I am having trouble adding this data to a map using leaflet.
The osmscarb.js:
var osmscarb = {
"type": "FeatureCollection",
...
3
votes
1answer
284 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 ...
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 ...
0
votes
0answers
97 views
How to load EPSG:102067 wms layer with leaflet?
I'm trying to display a wms layer located at http://geoportal.cuzk.cz/WMS_ZM200_PUB/WMService.aspx in EPSG:102067 with Leaflet + Leaflet Proj4JS. I followed the example given at git repository, but ...
2
votes
1answer
79 views
How to create a radius search in Leaflet
My objective is to create a radius search tools using Leaflet API. It will behave like how many POIs within the radius from a given point. Any tutorial or any blog forum link will be helpful to me. ...
2
votes
0answers
254 views
Projecting point in Leaflet from EPSG 900913 (same as 3857) to EPSG 2232 with proj4js returning unexpected results
I have a leaflet map from which I want to be able to query an api that accepts x y values in EPSG 2232 as inputs. Leaflet doesn't handle point transformations like Open Layers does so I am trying to ...
1
vote
2answers
400 views
How to open popup menu on right click in Leaflet
I want to open a popup menu list on right click with Leaflet map. I have tried the ContextMenu of leaflet but couldn't do it. Here is the sort of code I used.
map.on('contextmenu', L.popup()
...
1
vote
1answer
429 views
CloudMade Routing with Leaflet: route is not displayed
I am trying to consume the CloudMade routing API using Leaflet.
So far, I have managed to pass points and receive a response, and parse that response into an array of points. The array of points is ...
1
vote
0answers
221 views
How to render points from CartoDB with Leaflet and Leaflet Vector Layers?
I have a table in CartoDB containing some points. I want to render these points dynamically with Leaflet. There is cartodb.js for such tasks, but it does not support full customization of Tooltips, as ...
1
vote
2answers
382 views
Leaflet with EPSG4326 Tile Layer (using maptiler.org)
I have successfully been using Klokan Petr Pridal's MapTiler (http://maptiler.org ) to take GeoTiff files and create TMS tile pyramids for Leaflet (option #1 which projects to EPSG3857, also called ...
1
vote
1answer
81 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
0answers
351 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:
...
3
votes
1answer
341 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 ...
0
votes
1answer
67 views
tools for sorting/filtering based on map state
Im about to embark on a project that list restaurants on a map. Id be grateful to find out what the best tools for the job are?
The restaurants will be in a list beneath a map. The list will be ...
1
vote
1answer
237 views
GeoServer Callback Function Undefinded
Any idea why the function loadThis() comes back as undefined?
I've tried adding jsonp: false which doesn't help either. The json object is returned properly, I can view it in FireBug, but I can't get ...
1
vote
0answers
84 views
Leaflet Call to GeoServer for GeoJson [duplicate]
Possible Duplicate:
GeoServer Callback Function Undefinded
I've gotten this far by following examples mentioned below, but I'm stuck. The URL returns the GeoJson file but it isn't getting ...
1
vote
3answers
294 views
Add TileCache Schema Layer to Leaflet Map
I am trying to get Leaflet to display a TileCache Schema tileset. One example:
http://example.com/tiles/Admin/06/000/000/357/000/000/158.png
As far as I can tell, Leaflet only supports TMS style ...
1
vote
1answer
140 views
Does Leaflet has option for scale dependent layers?
Is it possible to show layers with Leaflet depending on scaling? For example not show counties until zoom level reaches 10.
Thanks.
2
votes
1answer
199 views
Leaflet WMTS layer
I would like to start using Leaflet instead of OpenLayers, but I can't find a way to load WMTS layer into the map. Is that possible with Leaflet, or do I have to stick with OL? I haven't found ...
5
votes
4answers
308 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 ...
1
vote
1answer
190 views
Slow tiles generation for leaflet js
I am currently trying to use leaflet to display images (jpeg or png) instead of maps, I have followed the instructions on this blog post to create the tiles using gdal2tiles.py here is the code we ...
1
vote
2answers
292 views
How to use Leaflet marker clustering with image map only?
I have image map of one state, where I would like to put about 100 markers. Is it possible to use only one image map instead of CloudMade tiles Leaflet usually uses? So, I need only that image to be ...
2
votes
1answer
465 views
How to set up a layer control using Leaflet?
I have been working on a mapping application using Leaflet. I am using a WMS on Geoserver to get my layers, which are overlaid on a cloudmade basemap.
I tried to use the layer control on my map by ...
2
votes
1answer
195 views
UTM Grid as a Layer with Leaflet
How can I display a UTM Grid as a layer with Leaflet?
Search a way to embed a OpenStreetMap map with Leaflet in a website.
Particularity. I want to display a UTM Grid as a Layer.
In addition, lower ...
3
votes
1answer
271 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 ...
0
votes
1answer
162 views
How to keep bound popups from opening on [click]?
I am working on a map application which creates and binds popups on markers and polyline objects.
The popups are created and bound lazily, i.e. ad-hoc when a user clicks on a specific object. The ...
0
votes
0answers
100 views
jQuery Templates with Leaflet
Is it possible to render a template like jsRender to a div created with Leaflet's .create method as follows?
info.onAdd = function (map) {
this._div = L.DomUtil.create('div', 'info');
...
4
votes
1answer
132 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!)
...
3
votes
1answer
79 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 ...
2
votes
0answers
208 views
Problem with multipolygon in Leaflet
I'm using Leaflet L.Polygon, but for some reason there's only blank site. Here's my code:
var map = L.map('map').setView([37.8, -96], 4);
var cloudmade = ...
1
vote
1answer
483 views
What is the default projection in Leaflet?
I've read an API documentation for Leaflet on its site, but I can't realize: what is a default projection to view maps? It was written about spherical and elliptical Mercator and Equirectangular - so ...
13
votes
3answers
616 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 ...
8
votes
3answers
321 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 ...
0
votes
0answers
99 views
leaflet: Zooming a tile cache
I have a NASA BlueMarble tile layer that goes from zoom factors 0-8. I when I go to zoom level 9, I do see a momentary scaling to 9 (stretching pixels). But then, as expected, I get the errorTileUrl. ...
3
votes
2answers
514 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.
...
1
vote
1answer
179 views
Is it possible to use Leaflet, PostGIS and PGRouting for web mapping?
I am newbie at Open Source GIS. I have already create a web mapping using custom tiles and leaflet. I have used my my own database. Tilemill was used to create the tiles and leaflet was used to ...
4
votes
1answer
229 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 ...
1
vote
1answer
176 views
Is it possible to show migration arrows on Leaflet map?
I need to develop Leaflet map which will show the whole world. Also, I need to draw some arrows which will show paths of migrations in the world. The important thing to say that those arrows need to ...
2
votes
0answers
146 views
Leaflet: how to draw curved lines?
So, I'm trying to draw curved lines in my application which is based on a Leaflet map.
As far as I know Leaflet does not support drawing curved lines at the moment, so my question is really more ...
1
vote
1answer
133 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
0answers
20 views
How to get latlong in leaflet on Mouse Over? [duplicate]
Possible Duplicate:
How to get the Lat, Long of a clicked location using Leaflet API?
I am using Leaflet JS library. I want to put an option in the map. I want to create a simple info div ...
1
vote
0answers
137 views
Raster Over Layer in Leaflet from GeoServer
I want to add a raster over layer onto the base layer and the raster layer is published by a Geoserver WMS. I set the raster layer's geographic coordinate system as the same as the cloudmate tiles. ...
0
votes
0answers
203 views
How to deal Leaflet map control checkboxes
I add some geojson layers to the map control once a layer is loaded and the control can show all the layer names. But I notice that all the checkboxes are unchecked by default. So that once I click ...
1
vote
0answers
170 views
Allowing Add/Delete/Update of features (web application): OpenLayers + WFS and GeoServer?
I've developed a WPF application that has a custom SQL Server database and uses the Esri ArcGIS WPF API to allow users to view, edit and query shapes (features) on a custom map. Maps are created from ...
1
vote
2answers
388 views
How to label GeoJSON polygons?
I'm using Leaflet combined with GeoJSON features. Is there a way to label GeoJSON features (in this case - polygons)? It should get labels from
feature.properties.name
This is my code where I ...
-1
votes
2answers
89 views
Go to the URL on click with GeoJSON
I'm using Leaflet API and geojson. I defined a function which zooms to the feature when clicked:
function zoomToFeature(e) {
map.fitBounds(e.target.getBounds());
}
function ...
3
votes
1answer
434 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 ...
0
votes
1answer
144 views
In leaflet does the addControl automatically handle events via the leaflet API?
I need to add additional overlay layers to be controlled by the controls within the leaflet map boundaries, but the code utilizes a leaflet-custom.js file. I am assuming it handles the event and ...
