An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps
0
votes
1answer
40 views
leaflet fitBounds with multiple marker
I have created two checkboxes. If I check one it will zoom to a point with marker. If I uncheck the checkbox the marker removed. Similarly second one is working. But I want to do if the two checkboxes ...
0
votes
0answers
14 views
How to put markers from geoJson to MarkerClusterGroup?
How to put markers from layer WTGS (which reads geojson from php file returned from postgis database) to L.MarkerClusterGroup?
WTGS = new L.geoJson(null, {
pointToLayer: function ...
2
votes
0answers
20 views
Display GeoJSON layer on top a SVG image instead of a map.
I'm very new to GIS, so hope this is the correct place to ask. Not sure if this will even be possible.
This is what I want to achieve:
In short, I want to display a set of polygons, lines etc. in a ...
0
votes
0answers
30 views
Unable to dynamically locate map boundary coordinates in OSM/Leaflet
I have been trying for the past hour to take the coordinates of the map edge in a OSM/leaflet application I am making. While I can get the coordinates of the center, and I can get the coordinates of ...
1
vote
1answer
62 views
How to prevent data scraping in a web map?
I would like to use Leaflet or a Leaflet-like mobile-friendly library to produce a web map of points of interest, but I am concerned with how easy it is to just scrape the data from the javascript. Is ...
-2
votes
0answers
72 views
heatmap with leaflet js API
I am using the heatmap.js plugins for leaflet js API. I am trying to run the follwing code locally but its returning error
Uncaught TypeError: Object [object Object] has no method 'addData'
...
1
vote
0answers
24 views
Leaflet Marker Cluster: Popups won't open after first
I built a map using Leaflet and markercluster.js, and I'm having a strange issue where after I click on the first popup, I'm unable to open any other popup. This happens whether you close the first ...
0
votes
1answer
37 views
Leaflet WMS layer not working until zoomed
I created a toggle button to add and remove wms layer from the map. In the default zoom level, it is working fine. But when I remove layer and zoom in or out, then do "Add Layer", the layer does not ...
2
votes
3answers
60 views
Sizing Leaflet Map inside bootstrap
I have been trying to change the height of my leaflet map to a percentage inside of bootstrap but everytime I do the map will not draw. Thus, I always have to revert to px value. I'm pretty sure its a ...
2
votes
1answer
98 views
Offline SLIPPY Map (Tiles) Database for Leaflet
How can create an offline cache of a large number of SLIPPY tile (PNG, 256x256) inside a web browser and then display them from that offline cache. For example, can one use HTML5 IndexedDB as an ...
0
votes
1answer
26 views
How to apply bounding box filter in leaflet WMS?
There is a working example in leaflet site for adding WMS Layer in leaflet map at : http://leafletjs.com/reference.html#tilelayer-wms. But I don't see methods to provide the filter for bounding box.
...
0
votes
1answer
55 views
Loop over features of a GeoJSON object from CartoDB
I have just little knowledge about HTML and JavaScript. Nevertheless I was playing, copying and pasting around with Leaflet and CartoDB.
I want to display the features GeoJson in a table. This is ...
1
vote
1answer
46 views
Looking for a GeoJSON describing the french departments
Is there any place where I could find a GeoJson describing the borders of the french departments, or do I have to convert a .shp file?
0
votes
1answer
50 views
Does leaflet support KML Ground Overlays?
I found an example showing KML overlays at http://harrywood.co.uk/maps/examples/leaflet/kml.html but it only plots vector layer using polygons.
Is there any way to plot Ground overlays of KML (like ...
0
votes
0answers
23 views
Finding Leaflet Map Tiles for Rivers
I'm building a map-based web app with Leaflet that focuses on the Danube river. I'm trying to find map tiles for the river to use as an overlay in my application, but I can't seem to find any services ...
0
votes
1answer
83 views
QGIS coordinates are very large
I've created a custom map in QGIS, with a few shapefiles. I'm using leaflet.js to render the map and the shapefile points and everything lines up correctly. The CRS is set to 4326.
When I export the ...
0
votes
0answers
65 views
How do I add elevation data to a GeoJSON line from a GPX file?
I understand that elevation can be added as an optional third value in Coordinates (lat, long, elev) in a geojson file, but I can't find a way to actually do that from a gpx file. I've used ogr2ogr to ...
2
votes
2answers
225 views
OpenLayers vs Leaflet for specific app
Could anybody give me some advice on which one should I use? OpenLayers or Leaflet
I will implement OSM on a web-app for taxi management.
The requirements for the map part are:
Tracking of the ...
1
vote
0answers
47 views
Point Within, Query in a buffer polygon in WMS like in ArcGIS ESRI
I need to do a query to filter the result inside a polygon or geometry, like this:
http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/query_buffer.html
But, i need to do this in a opengeo ...
0
votes
2answers
75 views
Leaflet proj4leaflet with multiple projections
I am looking at having both EPSG4326 tiles and EPSG3857(cloudmade) tiles on a single map (but separate layers). I have been looking at the proj4leaflet plugin, and it "appears" to me that this might ...
0
votes
1answer
80 views
Custom Leaflet Controls
I have gotton some help in creating a custom control for leaflet, but I am still having trouble upgrading to the CSS styles used by the latest versions of Leaflet. Basically, all I need is a icon in ...
1
vote
2answers
126 views
How to add a polygon from GeoJson into Leaflet?
I try to use the following function to add polygons to my Leaflet map.
function polygon(geojson)
{
alert(geojson); // alert for testing
layer = L.geoJson(geojson);
layer.addTo(map);
}
...
0
votes
0answers
71 views
Show UTFGrid from a local map in MBtiles
Good afternoon:
I have created a map using TileMill, exported it to MBTiles and uploated it to MapBox.
I want to show the map and its UTFGrid using Leaflet and Openlayers.
With this code, I can do ...
1
vote
0answers
34 views
Updating leaflet variable using dajax?
Really, I think this a somewhat easy question for someone with some more experience in javascript programming.
I have a Django app to map some locations using leaflet. I'm using dajax for some on ...
0
votes
0answers
27 views
repost: how to show context menu in Leaflet [duplicate]
I asked similar question earlier but didn't get suitable answer. I am now asking again with more clarification. Please see the following google right click menu. I want to create something like this ...
0
votes
1answer
93 views
How to add text-only labels on Leaflet map with no icon
I'm looking for a way to show text on Leaflet map using markers or anything else without showing any icon. I want to show text only and be able to style and rotate it... Any suggestion?
Thanks a lot
...
0
votes
0answers
14 views
GeoServer/Leaflet - Context menu to change raster [duplicate]
It's my first GIS project and after days of reading, it is still not clear how I should start.
I'm using GeoServer to serve GeoTiff images in WMS to a leaflet application. It works great.
Those ...
0
votes
1answer
85 views
QuantumGIS EPSG:3857 doesn't match with leaflet
Leaflet documentation said that they has EPSG:3857 as default projection.
Using QGIS with open layer plugin, I point to a location to find it's coordinate.
I used EPSG:3857 in QGIS as well.
The ...
0
votes
0answers
85 views
Reset style on select Leaflet polyline
Using Leaflet, how can I reset a polyline to it's previous color after it was selected? I have the following function that has been applied to each polyline when constructed:
function ...
2
votes
2answers
67 views
Can Geoserver return the raster value of a lat/lon point
I have a GeoTIFF published by Geoserver 2.2 and being used by Leaflet via WMS. How can I get Geoserver to return the raster value at a lat/long point?
I'm guessing it has to do with using WCS, but ...
2
votes
2answers
107 views
Slippy map format
When do you decide which to use? I've started using Geoserver and it seems like map files are downloaded to the browser (using Leaflet) in the WFS format.
When I look at OSM, Mapbox etc, they use ...
1
vote
0answers
68 views
Creating polygons for a choropleth map using PostGIS
I have a grid of points, each with a value to it as shown in the image below. The data was retrieved from PostGIS and rendered in Quantum GIS. The final result should be a polygons of a choropleth map ...
0
votes
0answers
77 views
Use leaflet draw plugin with mobile application
I am working on an Android project using leaflet to show a map, but I also want to add drawing features to my application. I found the leaflet draw plugin, but it's not really designed for mobile ...
12
votes
4answers
291 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:
...
2
votes
3answers
275 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 ...
3
votes
1answer
123 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 ...
0
votes
1answer
56 views
TypeError in leaflet on zoom in or out
I am working on an application that renders land parcels from PostGIS as polygons in Leaflet.
I have an event handler set for 'viewreset' on the map:
this.leaflet_map.on('viewreset', ...
1
vote
1answer
62 views
Create buffer around point in LeafletJS?
I am using LeafletJS. I want to create buffer around point. after Selecting a point buffer radius will be specifed by user in feet.
After searching of awhile I found this link of JSTS. does JSTS ...
2
votes
1answer
175 views
How do I add my own map layers to Leaflet
I have a Leaflet map and want to add two of my own small polygon layers (currently in shapefile format, but they could be converted to GeoJSON). Can this be done without a mapserver to publish them ...
0
votes
1answer
233 views
Leaflet offline tiles problem
I hate to ask this kind of questions, but i ve been stuck for 2 days now:
I rendered some tiles with mapnik which i want to serve in my offline application which will run from a portable disk, but ...
2
votes
1answer
83 views
Value at a particular spot on Geoserver Heatmap
Geoserver is drawing from a PostGIS database to generate a heatmap using this SLD extension. Leaflet then overlays the heatmap over the base layer.
Question: How can you determine the value at a ...
7
votes
1answer
215 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 ...
0
votes
1answer
341 views
Leaflet - how can I call custom js after drawing polygon?
I want to draw a polygon on a leaflet map and afterwards send it to the DB and retrieve all objects that intersect that polygon.
In Openlayers I did it by using custom function in "featureAdded:" ...
1
vote
2answers
73 views
Leaflet: maximum number of layers?
Is there a limit to have many layers you can have in a leaflet map?
0
votes
2answers
219 views
How to draw line in leaflet using postGIS road data
I have few points from server and I want to draw a line with this point on road. But the leaflet drawing point to point line as shown in picture in orange color. But I want to draw the line ...
1
vote
0answers
99 views
Leaflet: Linking a marker click event to an image
I'm breaking down my question into three parts. I am a beginner to Leaflet and to writing code. Currently, I have a JSON file with all of my markers linked to my map page. The idea is that every ...
0
votes
1answer
153 views
Leaflet Polyline with custom fill pattern
I'm drawing Lines with leaflet.js an have to create custom styled polylines.
So i got various image files which should be like a repeated background image in HTML.
So is it possible to give a drawn ...
0
votes
1answer
111 views
What is the best way to use Leaflet and Geoserver to highligh a feature after a WMS request?
I have a web map, and I'm hoping to make it interactive.
The layer I have is reasonably large, at 15 mb in GeoJSON format 4 mb compressed, so I don't want to load the whole layer as one file. But, I ...
0
votes
1answer
97 views
label for circle marker in leaflet
I am able to add label to circlemarker like this
L.circleMarker(points[i],{title: 'unselected'}).bindLabel('Destination').addTo(map);
This adds label which appears on mouse hover on circle marker.
...
0
votes
0answers
92 views
Reprojecting coordinates and geoJSON in leaflet
I have a Leaflet map in default projection and a wms layer also in default (web mercator) projection. I would like to add polylines and a geoJSON layer to my map, but the coordinates are in EPSG4326. ...

