GeoJSON has to extend FeatureGroup

This commit is contained in:
Arne Schubert
2017-01-30 21:45:46 +01:00
parent 0fe579c085
commit 52c346b4a2
+1 -1
View File
@@ -854,7 +854,7 @@ declare namespace L {
* Represents a GeoJSON object or an array of GeoJSON objects.
* Allows you to parse GeoJSON data and display it on the map. Extends FeatureGroup.
*/
export class GeoJSON {
export class GeoJSON extends FeatureGroup {
/**
* Creates a Layer from a given GeoJSON feature. Can use a custom pointToLayer
* and/or coordsToLatLng functions if provided as options.