leaflet-ng2 icon indicating copy to clipboard operation
leaflet-ng2 copied to clipboard

Property 'addData' in type 'GeoJSONDirective<T>' is not assignable to the same property in base type

Open iagsoncarlos opened this issue 1 year ago • 0 comments

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 image

image

Environment (please complete the following information):

  • Base: [Angular]
  • Version [16]

Additional context Change return Type to "this"

image

iagsoncarlos avatar Jun 05 '23 18:06 iagsoncarlos