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

learn more… | top users | synonyms (1)

1
vote
1answer
116 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 ...
1
vote
1answer
107 views

How can I make sure that tiles display properly when you first go to the page?

This page is not showing my map tiles properly when you first go to the page. http://bear.hol.low.li/Pocket_Docent/map.htm If I resize the window it centers and distributes the tiles properly. How ...
1
vote
0answers
80 views

How can i add to DB new created Polygon?

i'm new to LeafLet and i'm trying to understand power of LeafLet for mapping.. Question is simple, let's say i've created a new object(e.g. polygon) map.on('draw:created', function (e) { ...
1
vote
0answers
19 views

Alrign Track from GPX file with roads [duplicate]

I'm looking into possibilities to align track data from a GPX file with known roads, perhaps coming from OSM. So far I'm able to show the tack as such on a map powered by leaflet. Since the app ...
1
vote
0answers
571 views

Leaflet's worldCopyJump breaks map, zooming fixes it up (updated)

I had my map working with worldCopyJump set to true, but then it stopped working. I'm not sure exactly what broke it (the original form of this question said there was a connection to a plugin, but ...
1
vote
0answers
132 views

How to select GeoJSON vector feature in Leaflet?

I've been using OpenLayers for years,instead of comparing OL & Leaflet libraries,I decided to use Leaflet for the job for now. I have a GeoJSON data layer where I show point objects only.Just as ...
1
vote
0answers
214 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 ...
1
vote
0answers
276 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 ...
1
vote
0answers
133 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 ...
1
vote
0answers
337 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 ...
1
vote
1answer
191 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
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: ...
1
vote
0answers
105 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
2answers
378 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 ...
1
vote
0answers
325 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. ...
1
vote
0answers
436 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
0answers
244 views

When I try to do a WMS request to geoserver using the leaflet API I am getting a format related error

This XML file does not appear to have any style information associated with it. The document tree is shown below. <ows:ExceptionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
1
vote
1answer
95 views

Is a new map object required in order to create a wms overlay on top of a current map object with wfs layers using the leaflet api

I am trying to add a wms tile layer overlay over a wfs tile layer which I added to a map object. When I tried to simply add a layer on top of my current setView for my map object it overwrote the ...
1
vote
0answers
448 views

Leaflet markers do not open popup on click (with markerclusterer)

I just started using Leaflet and Marker Clusterer to organize the markers. Problem #1: When an unclustered marker is clicked, no popup appears. Problem #2: When a cluster is clicked several times, ...
1
vote
0answers
289 views

How to access arcgis cache directly using leaflet like openlayers?

I want to access arcgis server cache dircetly by only using leaflet,I wrote some code,but it work badly,could you anyone give me any hints? my code: getTileUrl: function (tilePoint) { var zoom = ...
1
vote
1answer
72 views

Is there a way to have a choropleth map in Excel reading data from a sheet?

Is it possible to have a solution similar to ESRI maps for office in which I want basically a geojson file or any file for that matters to render a choropleth map based on data in a sheet? Tried ...
0
votes
2answers
3k views

Dynamically set zoom level based on a bounding box

I have a leaflet map whose size depends on the size of the browser window. I would like the zoom level to be dynamically chosen so that it is as zoomed in as possible while showing the entirety of the ...
0
votes
3answers
352 views

Leaflet.js displaying incomplete base map

I am working on a tile server with a leaflet.js UI. I have successfully created the tiles for my base map and the tiles for the overlay. The result can be seen here (zoom in further to see overlay). ...
0
votes
2answers
45 views

Cartogram plugin for leaflet or OSM

Does anyone know if there is a plugin to make cartograms for leaflet ? I have sets of geotagged Twitter datas and I'd like to distord the map according to the density of tweets of every area of the ...
0
votes
1answer
163 views

Why it takes long time to open a map page [closed]

While opening for the first time it takes more than 30 minutes to open this map page. What might be the reasons. Any suggestions from experienced professionals? The link is ...
0
votes
2answers
75 views

MiniMap in Leaflet

I am trying to get a webmap working with leaflet.js. I found the beautiful addon of a MiniMap. But I do not get how it works. It works, if I only have one baselayer; MiniMaps shows up correctly. If I ...
0
votes
1answer
43 views

Leaflet & Esri-Leaflet: JSON objects not drawing correctly when using 'fields' filter

I am working with Leaflet 0.7.3 and esri-leaflet beta.6. Using L.esri.Layers.FeatureLayer works fine until I add the fields filter. At that point, the geojson objects draw sporadically (mostly not at ...
0
votes
1answer
36 views

Multiple Geoserver GetFeatureInfo templates for same layer?

I have layer 'states' on Geoserver for which I need multiple GetFeatureInfo templates. I would like to use that layer a couple of times on different maps, but I want different data in Leaflet popup. ...
0
votes
1answer
96 views

Displaying click results in a side panel

I am trying to do something similar to the interactive choropleth map (http://leafletjs.com/examples/choropleth.html) on leaflet's website. In my case I want to use a click instead of a hover and ...
0
votes
1answer
223 views

Error with Leaflet Routing Machine

I downloaded the Leaflet Routing Machine from https://github.com/perliedman/leaflet-routing-machine. Unzipped and opened the index.html in my browser to see how it looks, and got an error as shown in ...
0
votes
1answer
75 views

Optimum set up for large data sets such as mobile service coverage maps [closed]

When serving up large data sets such as mobile coverage maps (custom tile) mashed up with MapQuest maps and MapQuest POIs, is there any performance benefit to using shape file VS WMS tile PNGs? Any ...
0
votes
1answer
155 views

Reproject WKT Polygon with Javascript

I have a polygon in WKT in EPSG:4326: polygonWKT = 'POLYGON((13.215179443359373 52.588032137196755,13.42803955078125 52.592620721000365,13.454132080078125 52.46897854656702,13.347015380859375 ...
0
votes
1answer
118 views

Using photon in a Leaflet code: example?

I need to put a geocoder in a Leaflet page and I'd like to uso Photon (rif. http://photon.komoot.de/). There is a leaflet plugin here https://github.com/komoot/leaflet.photon but no example is ...
0
votes
1answer
39 views

Is there a widget/service to put a marker and send data?

I need to ask people where they want to go in the city, and as a response I need either geocoded location, or a marker on a map. Although everyone knows his home address, not everyone knows the ...
0
votes
1answer
1k views

How to add event listener to many markers on the map?

How can I add an event listener to many markers on the map? I know how to add an event listener to a single marker say: var marker = L.marker(...); marker.on('dragend',function(){...}); So, how can ...
0
votes
1answer
840 views

Which are the Geojson css style properties for mapbox.js?

I try to style a LineString in a Mapbox Map through L.Geojson and all the style properties I could find are: fillColor, colour, weight, opacity. Does anyone know if there is something else? For ...
0
votes
1answer
1k views

Leaflet GeoJSON features not showing up in map

New to GeoServer and Leaflet...loving it so far, but I am weak in JavaScript. I have just built a simple web page that should load points from a GeoServer WFS service using GeoJson. However, even ...
0
votes
2answers
111 views

Need some hints for a draggable POI-map (Leaflet)

I try to make such kind of map: http://www.plotbrowser.com/search.cgi but first, I can´t see, where they saved the coordinates and the text. If you look to the sources, there are no coordinates or ...
0
votes
1answer
589 views

Why WMS Image Repeat leaflet?

I setup wms service using mapserver, the map file is attached . I have created index page, the code is <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8" /> ...
0
votes
1answer
480 views

PHP-MBTiles Server implementation with Leaflet and Wax

Using PHP tile server from infostreams with Leaflet and Wax Connector for Leaflet to visualize my .mbtiles. I upped the source and the .mbtiles on a free hosting service. I am getting a blank Leaflet ...
0
votes
1answer
1k 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 ...
0
votes
1answer
22 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, ...
0
votes
1answer
42 views

Add 'name' from GeoJSON to Leaflet List Markers control

Im my web app I use Leaflet List Markers plugin (https://github.com/stefanocudini/leaflet-list-markers). Markers loaded as GeoJSON from GeoServer. I want dispaly name of markers in list control, but ...
0
votes
2answers
29 views

Tilt of OpenStreetMap with LeafletJs

I am using LeafletJs as mapping library for OpenStreetMaps. Is there any method map.Tilt() in Leaflet api like google provides map = new google.maps.Map(document.getElementById('map-canvas'), { ...
0
votes
1answer
39 views

Transfer Data from Database to Leaflet POP UP

Good Day too all! I just wanna ask a little question. Ahmm how do you show data from database to leaflet pop up? Here is my code in php select command <?php $db = new ...
0
votes
1answer
35 views

Overlay single, non georeferenced image in Leaflet?

I'm wondering whether it would be possible to somehow overlay a 3rd party, changing non-georeferenced image such as: If the image was static, I'd use mapwarper.net. But it's not. So is there a way ...
0
votes
1answer
75 views

How to re-implement a Dojo application using Leaflet?

I apologize in advance if this is not the correct forum to ask my question. I have an web map application developed using the Dojo framework. However I would like to create the same web map ...
0
votes
2answers
31 views

Leafletjs detect click/touch on layer

How do I detect a click on a layer and find out information about the layer that was clicked? Currently I can do the usual binding a popup and adding a click handler on the layer: ...
0
votes
1answer
113 views

Leaflet 1.0 release

I was listening Future of Leaflet talk: http://www.confreaks.com/videos/4665-jsgeo2014-future-of-leaflet and I'm really looking forward for 1.0 release. Are there any news on estimated release date?
0
votes
1answer
52 views

How to make polygons clickable in Leaflet.js / folium

I'm trying to create a clickable leaflet.js map using folium and Python. After a previous query - answered here Geopandas/folium map not displaying - I've added the polygons. But I'm getting a ...