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

learn more… | top users | synonyms (1)

1
vote
1answer
97 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
34 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
47 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
112 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
64 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
24 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
51 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
100 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
72 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
104 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 ...
3
votes
1answer
116 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
68 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
51 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
66 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
190 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
46 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
66 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
89 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
74 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
55 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
25 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 ...
4
votes
1answer
265 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
104 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
194 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
193 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
160 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
57 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
258 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
152 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
91 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
181 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 = ...
1
vote
0answers
57 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
47 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
134 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, ...
0
votes
2answers
344 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
118 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 ...
0
votes
1answer
62 views

Trying to learn leaflet, but not understanding the use of the "_.[method call?] syntax

I have been using Leaflet as of late and enjoy the "lightness" of this API vs. OpenLayers. One of the things I am doing is looking at examples and/or source code from pages that use this API. I ...
0
votes
0answers
188 views

Error while passing geojson data to leaflet heatmap

I am using following set of code for converting geoJson data into Heatmap format and passing to L.heatLayer extends of leaflet. While using this function to fetch the data...I get this following ...
0
votes
0answers
46 views

get wms info with Leaflet

I am trying to export(excel,xml or pdf formats) wms feature information using the next tools: 1.- Geoserver.-Provides a Sql statement wich generates a wms polygon layer. 2.- Postgis.-Provides the ...
0
votes
1answer
85 views

Tools for map animations

I am preparing some visualizations of data (mainly animated choropleths), and I am looking for suitable tools. Ideally, I am looking for something similar to this kind of animated infographics. So, I ...
1
vote
1answer
55 views

A problem with event firing upon mouseout

I'm trying to create a point map that displays information about a point in an info box upon user mouseover and changes the styling of the point. On mouseout, I want the info box and marker styling to ...
0
votes
0answers
109 views

How to remove all active layers or to know all active layers in leaflet?

I just need to know if there is any function which helps to return all active layers. basically, I need this function to remove all layers due to my ajax call. Here is my main function ... function ...
0
votes
0answers
17 views

scenarios to make multiple data maps comparisons?

I'm using Leaflet (and several of its plugins) to make a custom SOLAP solution and i want to offer to the user, the possibility to make data analysis and comparison between multiple maps, my question: ...
0
votes
0answers
68 views

Geoserver sometimes does not load all selected layers

I have geoserver serving two layers from postgis into a leaflet application. Leaflet is requesting GeoJSON from geoserver which are displayed one a time using Leaflet's layer control. The issue here ...
0
votes
0answers
57 views

How do you filter mapbox layers?

I have 6 layers that contain grid, feature, and tile layers. var layers = [{ name: 'basemap', minZoom: 0, maxZoom: 19, layer: L.layerGroup([ ...
0
votes
1answer
69 views

Leaflet popups only displays columns where cell information NOT NULL

I've got the following map on JSFiddle. The popup information comes from an Arcgis Server with 23 columns. When you click around the markers you can see that most of the popup information are not ...
0
votes
0answers
24 views

Can leaflet load tile of level n-1, instead of the tile at level n if it is not found. Without a geo server?

My application loads the tiles directly from a folder located on a server . I am using leaflet to do so . The tile url pattern is as folows: http://localhost/mymap/{z}/{x}/{y}.jpg My map (google ...
1
vote
1answer
67 views

Leaflet adding a HTML label

I would like to add a HTML label above each marker in a leaflet map. Is this possible? Example: Code for labels: HTML <table> <tr> <td class="red"></td> ...
0
votes
1answer
56 views

Best Map API for route polygon calculations

We are building a web app. I need to obtain the area reachable from specific points by driving or by walking in order to obtain the polygon (eg., 5 minutes walking polygon from a specific point), so ...
0
votes
1answer
49 views

Leaflet popups with source's special characters

I've got a map where I integrate spatial point data from an ArcGIS Server. Now I want a popup triggered via a click on the point. I know how everything works and the popup is displayed. But I've got ...