MapModulePlugin.RegisterStyleRequest
Allows user to add wellknown svg styles.
Use cases
- Add wellknown styles
Description
Requests a add wellknown svg styles a map.
Parameters
(* means the parameter is required)
Name | Type | Description | Default value |
---|---|---|---|
\* key | String | key of wellknown styles, for example 'routing' (used in RoutingService) | |
\* styles | Object | Array of svg objects |
Parameters for styles object:
Name | Type | Description | Default value |
---|---|---|---|
object key | wellknown marker name | ||
offsetX | marker center x in pixel (from left to right) | ||
offsetY | marker center y in pixel (from bottom to top) | ||
data | svg marker data. Svg marker must be a 32 x 32 pixel size. Svg elements can also contains shading-color or normal-color classes. shading-color class is used to find element to add shading color if marker is added and color is defined (shading color autamaticallyt calculated). normal-color class is used to find element to add marker color. |