leaflet-ng2
leaflet-ng2 copied to clipboard
Property 'addData' in type 'GeoJSONDirective<T>' is not assignable to the same property in base type
Describe the bug Property 'addData' in type 'GeoJSONDirective<T>' is not assignable to the same property in base type 'GeoJSON<any, Geometry>'. The Type '(data: Feature<Geometry, T>) => Layer' is not assignable to type '(data: GeoJsonObject) => this'.
Screenshots
Environment (please complete the following information):
- Base: [Angular]
- Version [16]
Additional context Change return Type to "this"