Skip to content
#

osm

Here are 900 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/

Karry
Karry commented Mar 28, 2022

Hi, I believe that using if constexpr (debugFlag) has many benefits in comparison of #ifdef.

  • it is more readable IMHO
  • static analyzers see the code in condition block, so refactoring is simpler, compilation fails when code is not correct even when condition is false...

![Screenshot_20220328_122131](https://user-images.githubusercontent.com/309458/160378310-9eb404fa-848b-4784-a1fc-

enhancement build good first issue

Improve this page

Add a description, image, and links to the osm 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 osm topic, visit your repo's landing page and select "manage topics."

Learn more