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

learn more… | top users | synonyms (1)

0
votes
2answers
108 views

How to display geotagged photos in leaflet

There is awsome plugin of displaying geotagged photos in leaflet Photos on leaflet I used the picasa photos implimentation when I implemented the plugin for my picasa public album photos link in ...
2
votes
0answers
31 views

Need to show a popup on selecting a layer option in leafletjs

I am trying to show a set of options using the layerGroup functionality to filter out the markers. I need to show a popup when an option is selected from a layer which will prompt the user to enter a ...
1
vote
1answer
43 views

Toggling Leaflet Legends

Currently trying to use the following code to add and remove Legends as a result of an overlay being added to the map. Getting no error messages in browser but still doesn't seem to be working. ...
1
vote
1answer
44 views

Why is the highlighting on these features obscured?

I have a function that highlights features when the user enters search text, and that text is found in the attributes of the given features. The code basically works; the problem is in the display. ...
4
votes
1answer
106 views

Remove sliver gaps between polygons with R

Is there a way to eliminate the small "slivers" between polygons using R? The desired solution would create a new SpatialPolygonsDataFrame where the shared boundaries between polygons are coincident. ...
1
vote
1answer
90 views

Highlighting a specific country on a world map

I am using leaflet to display a list of country names in a side panel. I am also showing them highlighted on a world map. When I click on a name in the side panel, I want to change the color of the ...
0
votes
1answer
61 views

Custom Leaflet Legend

Trying to create 9 separate leaflet legend variables for the 9 different overlays (graduated colour chloropleths) I have on a leaflet map. Each overlay will have 6 classifications of colour dependant ...
0
votes
1answer
69 views

Display tiles from a custom GeoTiFF overlayed on googles satellite map using leaflet

I want to overlay tiles generated from a GeoTIFF raster I created on a google satellite map. What I have tried is: Style and output a high quality colored PNG using qgis's map composer Tile this PNG ...
0
votes
2answers
224 views

Adding one search box for multiple GeoJSON polygon layers?

Multiple GeoJSON markers can be combined to one group layer then search on a specific attribute but doesn't work for GeoJSON polygons. How to put multiple GeoJSON markers and polygons in one search ...
0
votes
1answer
102 views

Leaflet - get bounds of all layers, not just vector

I need to get the bounds of all layers in a Leaflet map, not just vector layers. For vectors, I add them to a L.featureGroup, which has the method getBounds(). How do I include raster layers as well?
0
votes
1answer
59 views

Leaflet markercluster plugin also showing unclustered points

The following code displays clusters correctly. However, it also displays all the points as well as the clusters, which I don't want. What have I done wrong? Apologies that I cannot simplify the ...
5
votes
0answers
185 views

How to display wind data in R with the leaflet package

I have some data like this : longitude latitude speed direction 1 6.10722222 46.23639 4 360 2 6.95416667 43.54694 4 360 3 7.21472222 43.66556 ...
1
vote
1answer
74 views

Making leaflet handle tiles that have nodata values transparent?

I have a tif that I cut out the two sections of and merged them together into one tif and then processed it. Shown below is the original and the processed cuts (not to scale). Between the two ...
1
vote
0answers
81 views

Automatically filling contours by different type of hatching?

I applied a question a few days ago here Filling contour levels with grain (texture) using Leaflet, I still found no answer I try to well exposed the problem here again in another way. if we have a ...
1
vote
2answers
68 views

In a webgis using leaflet, how to export maps as pdf?

Like the title says, I'm building a webgis using Leaflet. I want to allow users to export maps from the website and download them, but the current downloaded format is shapefile. I wonder if there's a ...
2
votes
1answer
46 views

Mapbox - Images as Maps

In the past, by following this tutorial by Tom MacWright, I was able to in a few steps display any jpeg images as an interactive map with Mapbox. The steps are summarized below: Run a python script ...
0
votes
1answer
100 views

Leaflet force use GPU

Im using leaflet to draw points defined by custom div(like the default css in the leaflet.css). I have to update the points every 30 mili secs. But it seems to be so slow.. when i reach to high ...
1
vote
0answers
28 views

Conflict standart leaflet polygon and polilyne vs leaflet-dvf plugin

I found some bug: if you are using leaflet-dvf plugin and want to draw standart leaflet polygon, you will get error in your browser's console like Uncought RangeError: Maximum call stack size ...
0
votes
1answer
62 views

On lower zoom polygons don't show

I'm working with Leaflet and nodejs and when a polygon layer is loaded when the map view is at world map, the polygon don't shows, I have to zoom in at approximately zoom 10 or 13 to show polygons. I ...
3
votes
2answers
124 views

Move leaflet polygon to given position

I have a circle and a polygon that I'd like to move to the user's local position. I managed to move the circle latLng but I can't find a way to do the same thing with a polygon. Can someone help me ...
4
votes
2answers
69 views

How to hide leaflet base map?

I'm building a webGIS using leaflet library. Since the data visualization is for only a certain region, it seems that the broader leaflet base map looks a bit distracting. I wonder if there's a way to ...
1
vote
0answers
30 views

WebMapping Charts Overlap Issue LeafletJS

I am a beginner in webmapping development using LeafletJS and JS. I am the owner of the website built under LeafletJS. I have faced some problems with charts overlapping. On the right top of the map ...
0
votes
0answers
159 views

leaflet+canvg= leaflet svg elements on canvas

I want to create png file from leaflet map. I use html2canvas library, and leaflet map tiles and other elements convert to png great, but not svg-elements(offsets). I know, that there is some code to ...
0
votes
0answers
92 views

Add and remove several layers to map leaflet

I 'm trying to add objects to a map I get from an asynchronous call, what I have: var objetosLayer; var overlays = {}; $scope.showItems = function (content) { var showItems = function (item, ...
2
votes
1answer
378 views

Filling contour levels with grain (texture) using Leaflet

I created a program to draw temperature contour map of France: This is the code: library(ggplot2) library(gstat) library(sp) library(maptools) require(rgeos) library(rgdal) library(foreign) ...
0
votes
4answers
113 views

How to add remote GeoJSON data to a Leaflet map as a new layer?

I seem to be having a problem parsing the GeoJson and adding the layer to a Leaflet map. var terrain = ...
0
votes
0answers
61 views

Problem displaying 2 WFS layers in Leaflet

I have a problem displaying two WFS layers from Geoserver with Leaflet. Most of the time it works well, but sometimes, when I click on my first layer, it returns the second, and sometimes, if I click ...
1
vote
1answer
162 views

Transform an image with projection EPSG:4326 to EPSG:3857

I have an image with known boundary and projection EPSG:4326 and want to overlay it to openstreetmap using Leaflet.js. I have tried using function imageoverlay, but the image is not aligned with the ...
0
votes
0answers
20 views

Leaflet composite control

Looking at Google maps bottom right bar I was wondering if there is a method to compose leaflet controls to obtain a similar effect (i.e. Attribution, links and scale) by composing existing controls. ...
1
vote
2answers
101 views

Tiles with Leaflet from Qgis

I tried QTILES plugin for QGIS and it works very well. I can export tiles in .mbtiles or zip format. Now I'm trying to know how call these tiles from leaflet in this way: ...
3
votes
1answer
153 views

Leaflet map loads incorrectly when inside a Bootstrap .collapse element

I'm trying to create a Leaflet map which is hidden when the page loads, and revealed when the user clicks a button. I'm trying to use the Bootstrap collapse functionality to reveal the map on a ...
1
vote
0answers
41 views

Can MapboxGL use nearest neighbour interpolation for overlay image? [closed]

In HTML+CSS version of mapbox/leaflet I can set image-rendering option for .leaflet-image-layer with CSS to choose interpolation method. How can I make this in GL renderer?
1
vote
0answers
61 views

Using DOM to make custom Leaflet control error

I'm using DOM to create a custom leaflet control that opens a bootstrap modal with a form. There are two DOM created buttons on the left the of the map. Each button should be linked to their own modal ...
0
votes
1answer
58 views

Modifying the the Find Task in ESRI-Leaflet?

I'm trying to figure out how to modify the Find Task in ESRI-leaflet so that when the user types in a new text for search, the old selection is cleared. Currently, when you "find" one feature (For ...
0
votes
1answer
170 views

How to overlay Image to openstreetmap using leaflet.js

I want to overlay a wide range satellite image onto openstreetmap using leaflet.js. The satellite image is in Equidistant Cylindrical Projection. This is how I initiate the layer. ...
1
vote
1answer
195 views

TypeError: jsonFeatures.map is not a function using fuse-search in leaflet js

Trying to implement the fuse-search functionality in a leaflet map, however I am getting a TypeError: jsonFeatures.map is not a function. Here is my javascript part of the code: var map = ...
1
vote
1answer
91 views

How can I avoid self-managing z-index on leaflet popups

UPDATED INLINE Using Leaflet 0.7 (but I would like to move to 1.0 Beta 2) - NOTE, I do not have this problem in 1.0, beta 2. I have a leaflet map with two tile layers (mapbox, and my own) one ...
1
vote
1answer
108 views

Leaflet fitBounds Starting Position

I am creating a Leaflet application that uses the code from the Simple CSV template to set the bounds of the map to the selected markers. The issue I have is that I want to set a start position that ...
1
vote
1answer
172 views

Defining and including local tileLayer in Leaflet

I have a problem with including path of the local tileLayer (generated in OpenStreetMap) in Leaflet. Here is the code in which I define path to the map.png var map = L.map('map', { zoom: 8, ...
3
votes
1answer
38 views

Handle Multiple Layer Max Zoom Levels in Leaflet

Along with Mapbox layers, we are also adding layers from WMS and ArcGIS servers hosted by our customers to display map data relevant to them. Is there any way to figure out what the max zoom for a ...
0
votes
1answer
56 views

3D map with OSM2World

I want to create a 3d map and have found the osm2world converter. But i do not understand whether I can use it to convert the whole world map from 2d to 3d, for example on 17th and 18th zoom levels, ...
0
votes
1answer
96 views

How to load POI based on map movements?

I'm currently creating a new website based on geo-localised informations, which is quite new to me. I need to display my points of interest according to where the map is, and where the user make it ...
0
votes
1answer
43 views

wrong coordinates for wfs MultiLineString from geoserver

I have a leaflet application and I want to display some WFS layers coming from Geoserver. In Geoserver, I declare my layer with a "native SRC" EPSG:2154, and with a "declared SRC" EPSG:4326 and set ...
1
vote
2answers
61 views

Displace Lat/Long by meters

Sorry for the inflammatory title, Yes, I know these cannot be added. Problem: I have a vehicle that is reporting LL84, coordinates. It has a sensor that reports footprints of obstacles (LineString, ...
1
vote
1answer
49 views

Leaflet-ESRI code example that uses Find Task?

There's an example in the Leaflet-ESRI documentation here: https://esri.github.io/esri-leaflet/examples/finding-features.html But the code doesn't seem to actually work, neither on the example page ...
0
votes
1answer
173 views

Build a leaflet polygon(s) from GeoJSON feature(collection)

I find it quite practical to work with leaflet Polygon and it would be great to be able to build such objects directly from GeoJSON content. I did not find any Polygon constructor taking neither a ...
3
votes
0answers
80 views

Loading GEOJSON in Leaflet and separating attributes

I'm making a cloropleth map with geoJSON and Leaflet. Right now each year has a separate geoJSON file and I load each of them as below: function loadGeoJSON(data) { var json = null; ...
1
vote
1answer
31 views

Is there a way to change leaflet-gpx style?

I'm using the leaflet-gpx plugin to draw various .gpx files on my map. How can I change the color/style of it? gpxvar[{{loop.index0}}] = new L.GPX("{{url_for('static', filename='gpx/' + r )}}", { ...
0
votes
1answer
64 views

Querying subset of large ArcGIS server dataset via REST

I'm currently set up as follows: A large wetlands polygon dataset is stored in an arcgis.com account as a feature service (~395,000 polygons). I'm using the Esri-leaflet javascript library in ...
0
votes
2answers
148 views

map.on('click') limit number of pins added to map - leaflet js

I'm using Leaflet js and I want a user to be able to add a single point to the map (and not get trigger happy and add lots of pins), what do I need to do to modify the below so that this can happen. ...