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

learn more… | top users | synonyms (1)

0
votes
0answers
28 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 ...
0
votes
2answers
31 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
43 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
1answer
30 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
1answer
55 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 = []; ...
0
votes
0answers
19 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
0answers
28 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 ...
-1
votes
1answer
28 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
29 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 ...
0
votes
1answer
43 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
80 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
1answer
41 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: ...
0
votes
0answers
20 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 ...
0
votes
0answers
52 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
56 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
0answers
24 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
17 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 ...
1
vote
2answers
82 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 ...
1
vote
0answers
28 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 ...
0
votes
1answer
15 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
29 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 ...
0
votes
0answers
33 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 ...
0
votes
1answer
48 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 ...
0
votes
1answer
37 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 ...
2
votes
1answer
54 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
0answers
33 views

Indoor routing using Leaflet and pgrouting

I am going to create a project with leaflet and pgrouting for indoor mapping. now I want to search for possibilities of doing this,I want to chose right library for this .Does any one has any ...
1
vote
0answers
33 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 ...
1
vote
1answer
44 views

Add multiple strokes to Leaflet geojson feature path

Wondering if it's possible to add multiple strokes to a polygon or line feature (the same thing could apply to multiple fills for polygons too). The leaflet documentation on the L.Path style options ...
0
votes
1answer
86 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 ...
0
votes
1answer
25 views

Access index of a leaflet marker

I have seen some examples of this but they are not working for this situation. What I need to be able to do is when I click on a marker get the index of that marker to write to the console. The ...
0
votes
0answers
36 views

OpenLayers3 Heatmap: Which are the availables geotypes to load?

I'm developing a heatmap and I'm trying some of the availables libraries. Leaflet GoogleMaps OpenLayers I'm using a geoJson file with several amounts of points. Since Leaflet allow me to assing a ...
1
vote
1answer
47 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 ...
1
vote
1answer
70 views

How to link a text to a map

I would like to know if it is possible to link a text to a leaflet map. I would like to highlight a country in my map when the mouse is hover a word in my text. My map is created with leaflet library. ...
0
votes
0answers
27 views

Custom routes and nodes for Leaflet

This is probably far-fetched to ask but let's say you have a custom map using Leaflet. For me, my map is over here. As you can see, it's a neatly-designed yet clear map that is 30,000 pixels wide. ...
0
votes
1answer
21 views

tileLayers grouped in layerGroup not displaying

I am trying to combine 3 tileLayers (Esri map services for imagery, boundaries, roads) into one layerGroup so that it can be chosen via the layers control. This jsfiddle shows the three tileLayers ...
3
votes
1answer
77 views

Open popups in a fixed position with Leaflet

I have create my map with Leaflet exactly how I want it (with my markers and externals links). I would like to have the popup always fixes in the top right hand corner (for an example). Is there any ...
0
votes
1answer
31 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
0answers
63 views

Extend/change Leaflet Marker class to put DivIcon markers in another map pane

Leaflet uses different panes for different content. Markers are in the markerPane div and Popups are in the popupPane. I find the DivIcon class a lot easier to use than the custom layer because of ...
0
votes
1answer
70 views

Transparent custom legend with mapbox/leaflet.js

I am building a map with mapbox.js. I have created a custom legend and want to make it partially transparent, but can't figure out the right CSS. Here is my legend html snippet: <div ...
0
votes
1answer
54 views

Leaflet: Map focus issue after enabling a custom ZoomToArea control in Firefox

I'm trying to add a Zoom-to-Area control to Leaflet by extending the built in Control.Zoom plugin, but I'm fighting some "map-loses-focus" issue that affects only Firefox. The function works as I ...
2
votes
0answers
31 views

How to change layer order in leaflet.js

I would like to be able to change the order of the layers in leaflet. I tried implementing two leaflet plugins in order to change the layer order. First I tried leaflet-control-orderlayers, which ...
1
vote
0answers
109 views

Fetching postgis data through php json and passing to leaflet map

I am new to this and trying to explore leaflet and geojson a bit. Please help me with this. This is my php page which I am using to fetch data from PostGIS. (the data opened successfully in the ...
0
votes
1answer
86 views

GeoTIFFS on Geoserver are served slowly, at too low resolution

I have a bunch of large, high resolution GeoTIFFs, that I am serving using GeoServer. I also have a prototype client I wrote using Leaflet. The resolution of the TIFFs is quite high, but despite that ...
0
votes
1answer
34 views

How can I incorporate custom/image markers into Leaflet MarkerCluster

I'm using Leaflet MarkerCluster. It works fine, however, when you drill down to an individual marker (not cluster) I can't figure out how to replace the standard marker with my own custom icon/image. ...
0
votes
0answers
71 views

Can I print bing maps using mapfish-print and leaflet.Print.js?

var printProvider = L.print.provider({ method: 'GET', url: "localhost:8080/print-servlet-2.1-SNAPSHOT-IMG-MAGICK/pdf", autoLoad: true, dpi: 300, showLayouts: true }); var url = ...
0
votes
0answers
40 views

QGIS2Leaf - Limiting the number of features loaded

I'm using the awesome QGIS2Leaf plugin. As others have noted, Leaflet slows down when the number of features becomes too large. ...
1
vote
1answer
41 views

Source for cloud cover map layer over UK

I'd like to add a layer to display historical data on cloud cover in a Leaflet project I'm currently working on. This is specific to a given day in 2012 for a city in England, and ideally I'd like to ...
0
votes
3answers
100 views

Leaflet is behaving unexpectedly when trying to load more than one layer

I had a hard time trying to create a good title for my issue since it is a little hard to explain. But I will do my best. Basically what I'm trying to create a web map to show three distinct layers, ...
1
vote
2answers
168 views

Turf.js only with Mapbox.js?

After trying turf.js with plain ole leaflet and getting confused because the most basic stuff wouldn't work, I'm thinking that turf.js requires Mapbox.js and access token. Can anyone confirm or deny ...
0
votes
1answer
83 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 ...