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

learn more… | top users | synonyms

2
votes
1answer
241 views

Options for getting data from SQL Server into Leaflet app?

I have polygon data in SQL Server 2012 that I need to get onto a Leaflet application - we're not talking thousands of polygons, but simplified U.S. counties where only one state will be displayed at a ...
1
vote
1answer
884 views

Using Google Tiles on LeaftLet

I would like to use the Google tiles on LeafLet (RoadMap, Satellite,...). I've tried this https://github.com/shramov/leaflet-plugins and it works fine, but I'm worried about the possible legal ...
0
votes
1answer
706 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
1answer
136 views

Chorpleth Data visualization in Mapbox Leaflet API

I am using Mapbox Leaflet API. I have followed the following tutorial of Mapbox. https://www.mapbox.com/mapbox.js/ (Please change to Data visualization Tab) Onclick its zooming on state and hover ...
2
votes
0answers
113 views

Leaflet wms offset on zoom out

I have Leaflet map with base layer (epsg4326) and wms layer of gps point (also epsg4326). I've noticed when I zoom out , the gps point offset to the left. Any idea why it happens ? Here you can see ...
0
votes
1answer
288 views

Leaflet geoserver wms doesn't show on google map base layer

I have a site running Openlayers (base layer google and overlay wms in epsg4326 from geoserver). The site works fine. I've decided to try doing the same with leaflet , and from some reason I can't ...
1
vote
1answer
73 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
91 views

Help needed to get PINs clustered from the switch2osm.org tutorial (GeoJson)

I want to use basicly two PlugIn-Codes: for dragging with reload <http://switch2osm.org/using-tiles/getting-started-with-leaflet/> and for clustering, I wish to involve features from ...
2
votes
1answer
130 views

Super large scale maps with Leaflet, how?

I have a map/architectural drawing of two floors of a huge building with a lot of rooms. Now I'd like to make an interactive slippy map using preferably Leaflet showing all the rooms and use ...
0
votes
1answer
531 views

Leaflet Layergroup - hide one layergroup on first page render

Using Leaflet.js, I have two LayerGroups: var LayerSeventeen = new L.LayerGroup(); var LayerEighteen = new L.LayerGroup(); And their respective markers bound to those layersGroups: var ...
3
votes
3answers
227 views

Leaflet and ArcGIS Geoprocessing Service

Does anyone know of an example of a leaflet map with a geoprocessing service? Is it possible? What would the code look like? I know ESRI Leaflet allows feature layers and map layers but I can't find ...
2
votes
1answer
333 views

How do I set the fillcolor of polygons in Leaflet.js dynamically?

I'm using the interactive chloropath example for leaflet.js I figured out how to make each of my polygons add a running tally of values to the bottom of the page after each polygon is clicked. Upon ...
0
votes
2answers
80 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 ...
1
vote
0answers
251 views

Leaflet Event Craziness: jQuery click events don't propagate to L.DomEvents

I noticed that calling .click() on jQuery selected DOM elements in Leaflet ( such as anchor icons ) will not do anything -- the click event isn't propagated to the events created with L.DomEvents. For ...
0
votes
0answers
62 views

Filter down geolocation using osm, google, or nokia js plugins

I have a simple map using leaflet and the osm geolocation plugin. Everything works fine, however I have not found alot of information on how to filter the search to say a city/ county. This would be ...
5
votes
3answers
544 views

Advantages of WFS over GeoJSON/KML?

I'm planning to create an online map with openlayers (2 or 3) or leaflet. I have to show some points/markers (~30.000), polygons (~500) and lines on top of an OSM map in several layers. Those points ...
2
votes
2answers
76 views

Mixing coodinate systems

I'm planning to create an online map with openlayers (2 or 3) or leaflet. I have to show some points/markers (~30.000), polygons (~500) and lines in an area of ~10x10 kilometers in several layers. ...
1
vote
1answer
71 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 ...
6
votes
1answer
529 views

Using Tilestache and Leaflet To Display Rasters In Native Projection

I have a collection of old Idaho state highway maps in GeoTiff format. The projection that these maps have been georeferenced in is a transverse mercator projection, called IDTM83 (Idaho Transverse ...
0
votes
1answer
1k views

Go to the URL when clicked on Leaflet marker

I want to implement marker click event so when user click on marker it goes to url. Url is written inside an array (a[3]). However, this is my code which doesn't work, it always goes to the link of ...
4
votes
5answers
1k views

How to get a Leaflet app with a big GeoJSON file to work on mobile devices?

I have a leaflet app which displays a GeoJSON file as a layer. It works fine in the web browser. On the mobile browser it starts up, but quits after panning around on the map. I think the reason for ...
3
votes
2answers
362 views

GeoJSON formatting for Leaflet

I am using http://GeoJSON.io as the source for my data, which is then to be displayed via Leaflet.js. I found that leaflet neads the file to include "var name = {" but GeoJSON.io doesn't like it, ...
0
votes
0answers
213 views

Leaflet - How to display all stacked marker information on a single mouse click

I am using leaflet to view layers from GeoServer. There is a WMS basemap layer and WFS feature layer returning GeoJSON data. When I click on a Marker I use jQuery as the popup. If I click on a stacked ...
3
votes
1answer
200 views

Drag marker from outside to leaflet map

Is there any way to drag a marker from outside to the map using leaflet Api . Any suggestions plese help me?
5
votes
2answers
841 views

What is the most common way of displaying geodata from Postgis on Leaflet?

For example, in my database I've some points with geographic coordinates. I want to display them on Leaflet JS layer. Which instruments should I use? Maybe there is some API...
0
votes
2answers
1k 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 ...
1
vote
2answers
1k views

How to project pixel coordinates in leaflet?

I am trying to create a map based on an image which is 16384x16384 px, but I would also like to add markers at specific locations using pixel coordinates of this given image. I created a tile layer, ...
2
votes
1answer
2k views

setStyle() function for GeoJSON features - Leaflet

Ok, since I already asked a very long question about this, but since it didn't get any new replies for a while, and not to get confused in details, I will keep this one simple the best way I can. If ...
0
votes
2answers
709 views

How do I modify features during runtime, in a GeoJSON feature group on Leaflet?

I have added some GeoJSON to my Leaflet powered map as below. (Altered version) var array_of_layers = L.layerGroup([]); var styleholder = []; var belgium_style = {color: "#d3e46f"}; var bosnia_style ...
1
vote
2answers
233 views

qgis, simplify parcels to share borders

Is there a QGIS plugin or other method that simplifies parcels to share a common line(border)? I'm pretty sure I read about this some time ago. Couldn't find anything here or elsewhere. I'd like to ...
0
votes
0answers
182 views

Why do my maps exported in WGS84 have large coordinates?

I'm using QGIS to export map layers as GeoJSON for use in Leaflet. The map file CRS is WGS84(EPSG4326) and I'm exporting it as such. The issue is the exported coordinates are still too large: [ ...
1
vote
0answers
69 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) { ...
2
votes
1answer
2k views

Combine Leaflet with Geoserver WMS map

I'm not very skilled within the GIS world, however, I would like to know if it's possible to use this map: ...
1
vote
1answer
1k views

Leaflet Heatmap Dynamic data layer

I am trying to add heatmap layer to my map. I have tried the following plugin: http://www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html From this plugin the data came from ...
1
vote
2answers
199 views

Is it possible to convert regular JSON to GeoJSON?

My apologies if this is a repeat question, I searched here and couldn't find an answer. I have JSON data I've exported from Openpaths.cc which contains lat and lon values. However, the data is not in ...
0
votes
1answer
164 views

Leaflet: Centering map when zoom in

For a project I have to use four sets of JSON datas (and one of the files is bigger than 10M). I am loading these files asynchronously using queue.js. Once it's fully loaded and displayed I am ...
2
votes
1answer
161 views

How to efficiently render and enable user interaction on thousands of points with Leaflet?

I've got a large dataset comprised of about 10k points representing gas stations. Some of these gas stations sell diesel fuel, others do not. In my web map, I want to let the user switch between ...
4
votes
1answer
81 views

How can I create drawFeature control in leaflet?

I want to call a callback on leaflet after drawing a feature. In openlayers I do it like this : customControl= new OpenLayers.Control.DrawFeature( tempLayer, ...
1
vote
1answer
369 views

Leaflet Custom menu links

I have an issue where leaflet when embedded in Drupal will not allow the user to click on the map as the Y coordinates have a decimal on for some reason. As a quick fix, I am thinking to put the map ...
1
vote
1answer
286 views

Leaflet Legend fixed image? not SLD?

I have a style pulled from my GeoServer and have created a basic legend, with a fixed PNG. However I was wondering if it is possible to have this legend be pulled from the layers SLD? so that if the ...
1
vote
1answer
287 views

proj.4 definition for Moscow GCS_Bessel_1841 to WGS84 convertion

I'm developing an app which should show a map using Leaflet framework but i have no luck as the coordinate system on the map server differs from the one used by Leaflet. As a map server i use ...
2
votes
0answers
197 views

Does SVG offer better performance than plain HTML to render text labels in Leaflet? [closed]

I'm using Leaflet built-in L.DivIcon to add text labels to my map. Text labels are rendered in simple HTML divs and can be rotated and scaled using CSS based on values obtained from geojson data ...
3
votes
1answer
148 views

looking for an esri compatible javascript engine

I work on an esri heavy team, i'm looking for a mapping engine that will give me flexibility to build on top of and leverage only the pieces I need and or add more as the app grows. I've been using ...
1
vote
2answers
129 views

Is there a Cluster convex hull implementation in OpenLayers?

In this leaflet example. When hovered over a cluster marker, it shows the bounding area of the clustered features which is known as convex hull. Is there a way to reproduce it with OpenLayers?
0
votes
3answers
321 views

Can leaflet read OSM xml format?

I want something similar to OpenLayers.Format.OSM for leaflet. i know how to use a geojson file and i have found support for GPX and WFS in plugins, but not for OSM. Simply saying i want to make this ...
1
vote
1answer
932 views

Request WFS from GeoServer with Jquery AJAX using INTERSECT cql_filter error

I am having difficulty troubleshooting this issue and would appreciate some ideas. Thanks in advance! I am trying to make an AJAX request from a Leaflet map with Jquery to GeoServer to return a WFS ...
2
votes
1answer
119 views

How to control the order of appearance of markers using leaflet?

I'm plotting out markers from GeoJSON files onto my Leaflet map. Some of these markers overlap so now I want to control the order of appearance of these markers so that one type always sits above the ...
2
votes
2answers
654 views

Incorporate Google Streetview into a Leaflet map

The person who asked the question at the link below way back in 2011 said, "I understand that it is possible to incorporate Google StreetView into non-Google apps". Can anyone tell me how this is ...
0
votes
0answers
242 views

Leaflet WMS Layer from arcgis server (extreme noob question)

I am very new to GIS, and find things a bit overwhelming. Please be kind and excuse my ignorance. I am trying to display a map on a website using leaflet. The map I want to display is hosted from an ...
0
votes
1answer
90 views

Postgis objects inside Leaflet circle

How can I retrieve database objects from postgis database which are contained inside Leaflet circle object? I assume circle is only a point with some radius and not a polygon. I wonder can it be ...