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

learn more… | top users | synonyms (1)

1
vote
0answers
23 views

Draw heatmap only over water layer using Leaflet?

I need to draw a heatmap, but only over water because I want to represent water heat level. I am using Leaflet. How can I do it? I found an only-water layer, maybe it would be usefult for developing ...
0
votes
0answers
9 views

Webmapping js library with best support to WFS-T

I've tried to use WFS-T in ol3 but it was really a hard task, it seems that WFS-T is badly undocumented feature and it's much complicated to implement, and i'm looking for recommandations concerning ...
1
vote
1answer
11 views

Adding hyperlinks to Leaflet polylines created via Leaflet.Draw?

[Cross posting from StackOverflow as I realized this may be a more specific community for this] I'm using Leaflet.Draw, and I want to allow the lines that I draw to have hyperlinks in them so that ...
0
votes
0answers
10 views

L.Polygon getting distorted when panning a map

I am using Mapbox with leaflet. I have drawn a simple polygon with a hole inside that polygon. I have done this using L.polygon and passing an array of points inside it and another array in reverse ...
0
votes
0answers
17 views

how to apply a canvas 'grid' to leaflet without curvature

I'm trying to create a grid of tiles in canvas to represent some data the original data comes with UK OSEAST1m and OSNORTH1m, i'm the grouping the data up into aggregates of, say 40km (as per the ...
1
vote
1answer
127 views

Can't project ArcGIS Tiled Service for Esri-Leaflet

I'm following this example from the esri-leaflet docs. I have an ArcGIS Tiled MapService in ESRI:102696. So I'm trying to use Proj4Leaflet to project the service and use it in my application. I ...
-1
votes
1answer
17 views

combining mbtiles and getZoom to visualize with Leaflet

I have exported MBTiles as single file for every zoom scale. Now I can add map manually call them with mbtiles.php server. But I want to accumulate it in one and get the mbtiles file on zoom scale ...
0
votes
1answer
38 views

Reset Leaflet map

I'm creating a map like this: var map_object = new L.Map('map', { center: [39.8282, -98.5795], zoom: 5, }); var sublayers = []; ...
1
vote
1answer
29 views

Guessing unknown projection of Webapp

I have a series of points around the greater london area (may be also around 100-200kms away from it) like those here in the format Lon, Lat: 43032.1,32681 95816.5,34473.8 15439.3,-13987 The ...
0
votes
2answers
16 views

CartoDB/Leaflet bring layer to front

I've got 2 layers being rendered separately with this: var layerSource = { user_name: 'jonmrich', type: 'cartodb', sublayers: [{ sql: "SELECT * FROM " + ...
0
votes
1answer
36 views

Leaflet Geojson Styling

How can external Geojson feeds be styled in leaflet? To add my external feed I'm using the snip below: var mygeojson = new L.geoJson(); mygeojson.addTo(map); $.ajax({ dataType: "json", url: ...
1
vote
2answers
50 views

No popup on map if no feature is selected

I've got a webmap showing data coming from a Geoserver instance. With better.WMS.js I made it possible to display popups. Everything works nice except that the map shows popups too where there is no ...
0
votes
0answers
11 views

Pixel based transparency or “Lighten” on geoserver

This is similar but different from this question. I'd like to statically assign a transparency of one raster based on another raster. For example, say I had a raster of aspect in a spectral gradient ...
0
votes
1answer
28 views

LeafletJS Measurement of distance in deepzoom tilelayer

I have been trying to understand how LeafletJS determines distances between two points in a layer. I am trying to implement the custom scale plugin, (and have done so successfully) on a static tiled ...
0
votes
0answers
24 views

Displaying measurements on a grid of the Earth

I'm developing an application where I need to draw the averaged results of some measurements on a map. Right now, I'm using Leaflet to draw the map with MapQuest/OpenStreetMap tiles, and have the ...
0
votes
1answer
23 views

Removing added layer using leaflet and Cartodb

I've added a layer to a map via Leaflet. It's actually a circle around a point. This gets added perfectly. I'd like for it to be removed when I click a certain button. Here's how I'm creating the ...
1
vote
1answer
281 views

How to add multiple cartodb layers in viz.json to a leaflet layer control

I have create a visualisation in cartodb with 4 layers. The resulting viz.json is added to a leaflet map as follows: cartodb.createLayer(cartomap, [url], {https:true}) ...
1
vote
2answers
125 views

Load or display differents geojson data on zoom level for leaflet maps

I have a map with 3 levels of information. The first is the country, the second the state and the last one the cities. I wonder know if it's possible to use the zoom value in order to display the ...
0
votes
1answer
28 views

Mapbox.js setStyle differently for each element

I'm using geoJson in a featureLayer so I can use the setFilter-Function. My question is: How can I use the setStyle-Function and give Elements with different properties different colors? My Code: ...
1
vote
1answer
37 views

Leaflet popups events through CartoDB

How I can use the leaflet popups events throught CartoDB. I have seen that some events are working like 'click', 'movestart',but 'popupclose' and 'popupopen' are not working. My goal is to do some ...
0
votes
0answers
24 views

leaflet-routing-machine add waypoints, routing summary

I'm playing around with leaflet-routing-machine (https://github.com/perliedman/leaflet-routing-machine) and have 2 questions about it's usage: 1) I have the following code now routeControl = ...
0
votes
0answers
17 views

Subtract parts of polygon that overlap with ocean

I have some seismic data in format of shapefiles/geojson. The data has no relevance in the oceans so I am looking to strip away those parts of the polygon. What I am currently doing is using the ...
1
vote
2answers
81 views

IE8 problem with proj4.js

This problem is in IE8 and not in Firefox. My first problem was that IE8 don't support JSON natively and I get the "JSON is undefined". I solved this by including json2 or json3. Now JSON.parse ...
8
votes
1answer
264 views

How to add an attribution on a GeoJSON Layer from Leaflet?

I need to use a GeoJSON Layer on my Leaflet map. Here is a sample of my code: function onEachFeature(feature, layer) { if (feature.properties && feature.properties.popupContent) { ...
0
votes
0answers
44 views

How do I get popups to function in this interactive map?

I'm trying to create an interactive map like the Mapbox one demonstrated here Scroll-driven navigation map however, I want to have markers with popups. I cannot figure out what is prohibiting the ...
1
vote
1answer
40 views

How can I automate interactions with vector features in Openlayers3(canvas) like it is done in Leaflet(SVG)?

I want to automate and test some aspects of my map application in Openlayers 3. I mainly want to automate clicking on markers and other vector features(ideally through the DOM using xpath like SVG). ...
1
vote
1answer
691 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 ...
1
vote
1answer
113 views

Leaflet SVG layer is obscuring the underlying GeoJSON interactivity

I have SVG on top of GeoJSON in my map. How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane while keeping GeoJSON in-place within the leaflet-overlay-pane? (For example, how ...
1
vote
2answers
308 views

Adding multiple layers with timed delay in Mapbox/Leaflet

So I've got a Mapbox map showing data split into several layers. I'd like the user to be able to click a play button to call the function "gogogo", and then the layers get added one at a time every 1 ...
1
vote
0answers
19 views

Leaflet: my map is moving when popups open [closed]

I have an issue and I can't find a solution by myself. This is the map I'm working on. When you check "Afficher les produits échangés", you can see a half-dozen popups opening simultaneously. And ...
0
votes
0answers
9 views

Add custom marker from control with relative icon size to leaflet

Is it possible to add a marker with a control with a size relative to zoom ? example : I'd like to put a circle with a radius of 100m without drawing it, like a marker When I use L.icon I must set ...
0
votes
0answers
22 views

Integrate Timemap.js into a Leaflet web map

Timemap.js provides a nice way of using timelines together with web maps - showing only geometries or markers on the map that are chosen on the timeline. However, there are examples provided for ...
2
votes
1answer
379 views

Leaflet setView with non lat/long CRS

Is it possible to use setView when using an alternative CRS? var map = L.map('map',{crs: L.CRS.EPSG26915}).setView([4970081,477018], 13); // Returns: Uncaught TypeError: Cannot call method ...
0
votes
1answer
14 views

is there a setSource parameter that I can use for a button/image click event in Leaflet?

Is there such a thing as setSource for a layer, as there is in Open Layers 3, in Leaflet? Or something equivalent? I can't find it in the API documentation. UPDATE WITH MORE INFORMATION I am trying ...
1
vote
1answer
22 views

Bezier curves on GPX path using turf.js but for iOS platform

I'm interested in creating bezier curves on a path based on imported GPX data and understand how to implement turf.js for web. But how would I implement this for iOS? Specifically, if I am using a ...
1
vote
0answers
21 views

Solution to draw objects on layers and share maps

I'm looking for an online solution to build custom maps on top of OSM/Bing/Google layers and share them via export or link. I need to find an address, draw and drop lines, polygons, circles, add and ...
2
votes
1answer
118 views

Is it possible to use two layer.bindPopup functions in Leaflet

I have two different layers in a leaflet map. I have one layer in which I would like the popup to return some text from the layer's attributes. They other layer I would like the popup to return an ...
1
vote
0answers
22 views

Accessing Time-Enabled Layer/adding time slider to webmap using google maps as basemap

I have the wireframe that I need for my webmap along with the arcgis map service layers (with time enabled data). I want to have two map divs with two time sliders that use the same service layer in ...
0
votes
0answers
21 views

Leaflet Magnifying Glass and Opacity Controls

I have been looking at Leaflet as an alternative to Open Layers 3 in the event that I need something more lightweight, but I am running into a problem when trying to integrate some of the generously ...
2
votes
1answer
3k views

Disable leaflet interaction temporary

How can I temporary disable zoming/draging the Mapview in Leaflet.js Tried so many ways but without any luck. It's important to make it temporary and I also need the option to enable again.
0
votes
1answer
35 views

KML too large for browser - can this be done in a server?

Please note, this question is similar to this question, which is 4 years old and has no accepted answer. The closest to an answer in that thread - using fusiontables - is not going to work for me ...
2
votes
1answer
128 views

Most efficient way to use UTM in leaflet

Our server is using UTM internally. We then send a large number of UTM Coordinates to display them in a custom made leaflet layer. First we transform (unproject) them into "normal" geographical ...
0
votes
1answer
386 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 ...
0
votes
1answer
21 views

Geocoder's autocomplete only shows 26px in Leaflet

I've got a map on GitHub (I removed everything that isn't needed). The problem is that the geocoding widget doesn't show the search results completly: I guess this happens due to a custom zoom bar ...
0
votes
1answer
62 views

Which map API to draw polygon and export my data that is within boundary?

I have 5 point datasets that I want to display and be able to filter by fields. I will then be able to hand draw a polygon and export Excel of the data from each dataset within the polygon. Which web ...
5
votes
2answers
720 views

Large loads geojson from mysql to leaflet?

I have a mysql database with +25K rows including geometry and other attributes. Using a mysql2geojson php script I then added it to a leaflet map. It is super slow now, what can I do to boost the ...
6
votes
1answer
1k views

Generating Interactive Tiles using Nodejs, Mapnik, and PostGIS for Leaflet

I am looking to do something like this but where I have all the data on the same server. I've been following through the set of tutorials @ sparkgeo.com/labs/big/ and I'm having some difficulty. ...
2
votes
1answer
42 views

Navigate two leaflet maps

I am looking for an example where there would be multiple map divs containing leaflet maps. When one is panned I want the other one to pan or zoom with it so they are always in sync.
0
votes
1answer
23 views

On load event for Leaflet proj4leaflet projected geoJSON layer

Can't find proper event for vector layer like on "load", to be fired when this layer is fuly rendered. I add vector features to a layer in Leaflet using proj4leaflet from JSON object like this var ...
0
votes
1answer
79 views

Geoserver popups in Leaflet

I've got a simple Leaflet map with a basemap and one map-layer coming from my own hosted GeoServer. I made the layers show up nicely in a map. Now I want to add popups on the point layer showing ...