Skip to content
#

leaflet

Here are 2,814 public repositories matching this topic...

leaflet-geoman
Falke-Design
Falke-Design commented Feb 18, 2022

In the event payload there is always the source and the possibility to add custom properties. Is it possible to extend types and make a base event type with source and custom properties?

TS:
https://github.com/geoman-io/leaflet-geoman/blob/1fdc918fa39ffa84327fdf639fa75865168f716d/leaflet-geoman.d.ts#L1437-L1440

JS where the payload and the custom payload are merged:
https://github.com/

PROgram52bc
PROgram52bc commented Mar 8, 2022

When creating a Choropleth object with geo_data specified, but without the choro_data attribute, the _get_data method will raise an exception:

leaflet.py:1361, in Choropleth._get_data(self)
   1358     return {}
   1360 if self.value_min is None:
-> 1361     self.value_min = min(self.choro_data.items(), key=lambda x: x[1])[1]
   1362 if self.value_max is None:
   1363     self.val

Improve this page

Add a description, image, and links to the leaflet topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the leaflet topic, visit your repo's landing page and select "manage topics."

Learn more