Oskari API documentation

Select request

admindown-arrow
frameworkdown-arrow
mappingdown-arrow
uidown-arrow

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 keywellknown marker name
offsetXmarker center x in pixel (from left to right)
offsetYmarker center y in pixel (from bottom to top)
datasvg 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.