leaflet
Here are 1,561 public repositories matching this topic...
If the valueField parameter is not set in the config, the documentation specifies that valueField parameter should fall back to 'value'. However, the values are at some point through the plugin. I have created a fix so will make a pull request shortly.
Bug report
Before opening an issue, make sure to read the contributing guide and understand this is a bug tracker, not a support platform.
Please make sure to check the following boxes before submitting an issue.
**Issues opened without using this template will be closed unless they have a good reason not to f
In some cases, the calling application may want to provide its own data at run-time. We already have the setDataSource()
method for adding non-tiled data sources at run-time. However, this has a couple limitations:
- Does not work for non-tiled data sources (the
data
value is treated as a sin
As per title, by following the guidelines of the rest of the test we need to add unit tests for LTileLayer
use https://pub.dev/packages/location to display the user's current location as a Marker
In the documentation for ipyleaflet, specifically when it comes to a circle marker - there is no mention what kind of reference system is used when placing the circle marker. Needless to say this is extremely frustrating. Is it lat long? Is it an x,y axis system in reference to the canvas?
Please add additional examples of how to deal with the data generated by events. Expand on an example of how to use data of creating a line, etc. I normally understand the 'e' but I am missing the relevant data generated in the event, where is it? How does someone take this utility to the next level? How do you find your data for storing in a database (not how to store it, but where is the data
-
Updated
Jan 17, 2019 - JavaScript
v0.3.1 ->leaflet-dvf.js
_createText: function (layer) {
// var options = layer.options.text || {};
var options = layer.options || {};
......
var textNode = document.createTextNode(options.text);
......
}
Once the user move point during measuring distance no more points can be drawn, only move of points is possible.
Even if the user close the measure tool panel, there is no way to start drawing again, unless the page is refreshed.
Any thoughts/info on this?
Hello!
That would be nice to have a feature to locate autocomplete block above the input field, and remain the input field sticky to its position.
For example this is must-have feature for an input located at the very bottom of the map.
Can we achieve this only with HTML and CSS?
-
Updated
Mar 31, 2020 - JavaScript
OpenStreetMap restricts the zoom level to 20 so I need to use Leaflet maxZoom and maxNativeZoom to zoom into last level tiles.
Yet, I didn't find in django-leaflet config a corresponding MAX_NATIVE_ZOOM
property to set in LEAFLET_CONFIG
.
Is there any way to set this value ? If not, is it possible to set the leaflet property by accessing to the object in the main_map_init javascript()
fun
Request a feature or report a bug? [这是一个需求还是一个缺陷]
缺陷
One-line summary [问题简述]
在某些环境下,examples/js/utils.js.getLanguage函数返回的语言字符串不符合预期
Version [产品及版本]
iClient 最新版本,以nginx暴露,在部分浏览器下
Actual Behavior [当前现象]
在某些环境下,examples/js/utils.js.getLanguage函数返回的语言字符串不符合预期,例如guage
Add version note
Please add a version identifier to the distributed file.
This will help me differentiate between this
https://labs.easyblog.it/maps/leaflet-search/src/leaflet-search.js
and this
https://cdn.jsdelivr.net/npm/leaflet-search@2.9.8/dist/leaflet-search.src.min.js
and other versions floating around.
on zoom your script trows a TypeError: this._marker is undefined if drawMarker: false. not sure about the rest of the code
Previously I'm using Leaflet Control Search with leaflet marker cluster, But now when i replaced master cluster with PruneCluster i am unable to search markers.
I'm using Leaflet Control Search like below:
var searchLayer = L.geoJson().addTo(map);
L.map('map', { searchControl: {layer: searchLayer} });
It would be nice to have a shortcut for "Map It!" button to speed-up the experiments with WKT. Ctrl+enter
and Shift+enter
when the input is focused seem to be a reasonable choice for this!
I am try to add Leaflet layer from well know text(wkt).
I found it does not include EditableMixin cause that layer.enableEdit is not a function error.
https://github.com/Leaflet/Leaflet.Editable/blob/6bf3b5a1a7ac4dce675eaf1d8a7bed2ba37f9361/src/Leaflet.Editable.js#L1917-L1938
How can I use enableEdit method with layer class?
Sample code:http://jsfiddle.net/Lhq0ance/8
Hi,
i have imported Easy-Button for my project. When i want compile my Angular Project I obtain this error:
ERROR in node_modules/leaflet-easybutton/src/easy-button.d.ts(4,16): error TS2665: Invalid module name in augmentation. Module 'leaflet' resolves to an untyped module at 'Path/node_modules/leaflet/dist/leaflet-src.js', which cannot be augmented.
Leaflet: "^1.5.1",
Leaflet-Eas
I'm using Leaflet 1.3.1 - because Leaflet/Leaflet#6245 - and VectorGrid 1.3.0 for mvt with L.canvas.tile as rendererFactory.
The defined click-handler works as expected only if zoomlevel is integer (6, 5, 19, ..). If zoomlevel gets fractional (6.25, 10.75, ...), mousepointer change back to normal and click on a feature
-
Updated
Jan 10, 2018 - JavaScript
As I am deepdiving into the code for 2 weeks now, it is still hard for me, to figure out, what function is doing what in which situation. I am not a heavy-coder and I would like to propose to write a short description into every function/class on the purpose of it and when it is called.
This is done nicely in the exporter.py file already but is missing for most of the others.
ubuntu@ip-172-31-31-248:~$ python gdal2tiles-leaflet/gdal2tiles.py -z 0-11 -l -p raster -w none /mnt/1000/combined2.png /mnt/1000/out/
Generating Base Tiles:
0...10...20...30...40...50...60...70..ERROR 1: libpng: Read Error
ERROR 1: /mnt/1000/combined2.png, band 1: IReadBlock failed at X offset 0, Y offset 49257
Traceback (most recent call last):
File "gdal2tiles-leaflet/gdal2tiles.py"
If I have two rasters, r1 and r2, the following code throws up an error re: leaflet not handling the mapview S4 class:
mapview(r1, layer.name = "r1") +
mapview(r2, layer.name = "r2") %>%
leaflet::hideGroup(group = "r2")
It would be nice, however, if this functionality were available, instead of having to use @map
to push the leaflet map through the pipe, especially as th
Improve this page
Add a description, image, and links to the leaflet topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the leaflet topic, visit your repo's landing page and select "manage topics."
None of following GeoJSON functions are covered with tests yet:
geometryToLayer
coordsToLatLng
coordsToLatLngs
latLngToCoords
latLngsToCoords
asFeature
Sample test (for
latLngToCoords
):