MapService documentation¶
import { MapService } from '@siemens/maps-ng'; Attributes and Methods¶
| Name | Type | Description |
|---|---|---|
| clusterLayer() ¶ | Initialize animated cluster layer for points if clustering is enabled Parameters
| |
| createFeatures() ¶ | Create feature with parameters | |
| getClusterStyle() ¶ | Cluster styling | |
| getFeatureStyle() ¶ | Separate feature styling with icon | |
| getLabelStyle() ¶ | | |
| getMarkerOffset() ¶ | | |
| getMarkerSize() ¶ | | |
| labelLayer() ¶ | (features: Feature<Geometry, { [x: string]: any; }>[], multiWorld: boolean, maxLabelLength: number, maxLines: number, clusterLayer?: Layer<Source, default<any>, { [x: string]: any; }> | undefined) => VectorLayer<VectorSource<Feature<Geometry, { [x: string]: any; }>>, Feature<Geometry, { [x: string]: any; }>> | |
| resetCaches() ¶ | () => void | |
| setTheme() ¶ | (groupColors: Record<number, string> | ColorPalette | undefined) => void | Parameters
|
| setZoomCallback() ¶ | | |
| (readonly)theme ¶ | { fillColor: string; strokeColor: string; textColor: string; defaultMarkerColor: string; status: Record<MarkerStatusType, string>; colorPalette: ColorPalettes; } | |
| vectorLayer() ¶ | Create vector layer when clustering is disabled |
Types Documentation¶
import type { ColorPalette } from '@siemens/maps-ng';
import type { ColorPalettes } from '@siemens/maps-ng';
Marker description, can be simple string or HTML as string description : Extra properties to be passed along (click function consumes it) extraProperties ? : If you want your point to be clustered by it's group, you need to set the group id here for this point Color with the same id will be assigned. Must be higher than 0 group ? : Latitude value for marker Longitude value for marker Marker style marker ? : Marker name name : click ? Click functionality, do any extra staff when clicking on the point, just create needed logic for click functionality Inherited from MapPointMetaData extraProperties ? : import type { MapPoint } from '@siemens/maps-ng';
string Inherited from MapPointMetaData ¶ any Inherited from MapPointMetaData ¶ number Inherited from MapPointMetaData ¶ MarkerOptions Inherited from MapPointMetaData ¶ string Inherited from MapPointMetaData ¶
(extraProperties?: any) => void ¶
any ¶
MarkerStatusType
'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical' | 'default' | 'unknown' ¶ import type { MarkerStatusType } from '@siemens/maps-ng';
Color of the marker, HEX or css compliant color value. Only use when a semantic status isn't working for the use-case. Icon options icon ? : Semantic status for coloring. This is also theme-aware. status ? : Visual representation of markerimport type { MarkerOptions } from '@siemens/maps-ng';
IconMarkerOptions ¶ MarkerStatusType ¶
Marker description, can be simple string or HTML as string Extra properties to be passed along (click function consumes it) extraProperties ? : If you want your point to be clustered by it's group, you need to set the group id here for this point Color with the same id will be assigned. Must be higher than 0 Marker style marker ? : Marker nameimport type { MapPointMetaData } from '@siemens/maps-ng';
any ¶ MarkerOptions ¶
Except where otherwise noted, content on this site is licensed under MIT License.