packages/core/src/lib/directives/data-layer.ts
AgmDataLayer enables the user to add data layers to the map.
```typescript
.agm-container {
height: 300px;
}
],
Selector | agm-data-layer |
Properties |
|
Methods |
Inputs |
Outputs |
constructor(_manager: DataLayerManager)
|
||||||
Parameters :
|
geoJson | |
Type : object | string | null
|
|
Default value : null
|
|
The geoJson to be displayed |
style | |
Type : function
|
|
The layer's style function. |
layerClick | |
Type : EventEmitter<google.maps.Data.MouseEvent>
|
|
This event is fired when a feature in the layer is clicked. |
Private _addEventListeners |
_addEventListeners()
|
Returns :
void
|
id |
id()
|
Returns :
string
|
ngOnChanges | ||||||
ngOnChanges(changes: SimpleChanges)
|
||||||
Parameters :
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
toString |
toString()
|
Returns :
string
|
Private _addedToManager |
Default value : false
|
Private Static _dataOptionsAttributes |
Type : []
|
Default value : ['style']
|
Private _id |
Type : string
|
Default value : (layerId++).toString()
|
Private _subscriptions |
Type : Subscription[]
|
Default value : []
|