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

learn more… | top users | synonyms (1)

0
votes
2answers
298 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
152 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
79 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
228 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
90 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
87 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
89 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
59 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
118 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
32 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
70 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
164 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
85 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
34 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
224 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
124 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
468 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) library(...
0
votes
4answers
145 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 = L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/...
0
votes
0answers
68 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
223 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
124 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: L.tileLayer('http://www....
3
votes
1answer
216 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
53 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? UPD Solved You can set ...
1
vote
0answers
83 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
59 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
212 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. L.imageOverlay(...
1
vote
1answer
250 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 = L.map('map'...
1
vote
1answer
125 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
198 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
273 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
52 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
79 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
125 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
56 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
73 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
50 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
257 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
110 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
46 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
69 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
219 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. ...
2
votes
1answer
77 views

Birdseye Viewer in other applications?

has anyone used Bing Maps Birdseye Viewer tiles in other applications? I have seen Leaflet Bing but it looks like it just has aerial, aerial with labels and road tiles. Does it have birdseye tiles? Is ...
1
vote
0answers
15 views

Axis flipping in Open Layers

I have a map working using Leaflet as follows, using EPSG 2236 and a custom tilegrid. I want to switch to OpenLayers 3 so I can use the map rotation functionality but I am having trouble setting up ...
1
vote
0answers
143 views

GeoServer TMS with leaflet coordinates are different

I use the example tiger-ny layer from geoserver with leaflet like this: var map = L.map('map').setView([62.92578, 32.08523], 13); L.tileLayer('http://localhost:8080/geoserver/gwc/service/tms/1.0.0/...
0
votes
1answer
72 views

How can I add a new layer, then remove previous layer from a Leaflet/CartdoDB map without the map clearing everything

I am new to CartoDB/Leaflet. Here's my fiddle... http://jsfiddle.net/zippyferguson/fLkqgf4q/1/ If you click the play button, I want it to load data to the map year by year from 1966 to 2015 from a ...
2
votes
1answer
66 views

How to make Leaflet maps accessible and WCAG2 compliant

I have followed several threads on this topic but have not been able to fix the following issues: How to prevent Leaflet map tile images names from being read out by screen readers? How to make ...
1
vote
1answer
182 views

Leaflet with Geoserver in background to slow for GeoTiff

I am implementing a leaflet web-map application to display several GeoTiffs. The GeoTiffs are each ~300MB and published by Geoserver as WMS. In Leaflet I add them through L.tileLayer.wms. I also ...
2
votes
1answer
151 views

How to use Igraph with leaflet for R?

I try to draw a graph in map with R code : df<-data.frame("from" = c("Lyon", "Toulouse", "Paris", "Marseille"), "to"= c("Paris", "Paris", "Marseille", "Toulouse")) meta <- data....
2
votes
2answers
488 views

Calculating bounding box of given set of coordinates from Leaflet Draw?

I have values generated from Leaflet Draw plugin that look like this: { "type": "Feature", "properties": {}, "geometry": { "type": "Polygon", "coordinates": [ [ [-73....