@mapgear/mapengine > VectorLayer
VectorLayer interface
Represent a map engine layer
Signature:export interface VectorLayer extends Layer 
Events
| Property | Modifiers | Type | Description | 
|---|---|---|---|
| onFeaturesLoaded | GAEvent<GAEventArgs> | Event triggered when the features are loaded | |
| onHover | GAEvent<HoverEventArgs> | Event triggered when the user hovers over features | 
Methods
| Method | Description | 
|---|---|
| AddFeature(feature) | Add a feature to the layer | 
| AddFeatures(features) | Add multiple features to the layer | 
| ClearFeatures() | Clear all the features in the layer | 
| EnableHover(enable) | Enable hover on the map. Hover provides a cursor when moving over a feature | 
| EnableHover(enable) | Enable hover on the map. Hover provides a cursor when moving over a feature | 
| GetFeatureById(id) | Retrieve a feature by its id | 
| GetFeaturesAtPixel(pixelCoordinate) | Retrieve the features at the specified pixel coordinates | 
| GetFeaturesByFilter(filter) | Request features by a specific filter | 
| GetStyle() | Retrieve the style of the layer | 
| RemoveFeature(feature) | Remove a feature from the map | 
| RemoveFeature(feature) | Remove a feature from the map | 
| SetStyle(style) | Set the style of the features in the layer |