SimpleStyleProperties interface
A set of common properties that may be included in feature properties capture style information and common content when reading or writing a spatial data. The SimpleDataLayer uses these properties to dynamically style the data it renders. Most of these are the property values used in the geometries respective layer options.
- Extends
-
Object
Properties
anchor | Icon anchor value. |
base | For extruded polygons, this value represents the how high the polygon is above the ground in meters. |
color | For points, the color when displayed on a bubble layer. |
description | A common description field. Some XML files use 'desc' instead, this value will be copied to this property. |
fill |
For polygons, the fill color of a polygon. |
fill |
For polygons, the opacity of fill color. |
height | For extruded polygons, this value represents the height of the polygon in meters. |
image | For points, the icon image name when displayed in a Symbol layer. |
image |
For points, the URL to a icon image. Can be a data URI or a URL that points to a CORs enabled endpoint. |
offset | For points, the icon offset value to apply to icons when displayed in the symbol layer. |
popup |
A template used to define how content is rendered inside of a popup. |
rotation | For points, the rotation value to apply to icons when displayed in the symbol layer. |
size | For points, the scale value to apply to icons when displayed in the symbol or bubble layer. |
stroke |
For lines and polygons, the color of a line or our polygon outline. |
stroke |
For lines and polygons, the opacity of a line or our polygon outline. |
stroke |
For lines and polygons, the width of a line or our polygon outline. |
title | A common title field. Some XML files use 'name' instead, this value will be copied to this property. |
visible | If the feature is visible or not. |
Property Details
anchor
Icon anchor value.
anchor?: "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right"
Property Value
"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right"
base
For extruded polygons, this value represents the how high the polygon is above the ground in meters.
base?: number
Property Value
number
color
For points, the color when displayed on a bubble layer.
color?: string
Property Value
string
description
A common description field. Some XML files use 'desc' instead, this value will be copied to this property.
description?: string
Property Value
string
fillColor
For polygons, the fill color of a polygon.
fillColor?: string
Property Value
string
fillOpacity
For polygons, the opacity of fill color.
fillOpacity?: number
Property Value
number
height
For extruded polygons, this value represents the height of the polygon in meters.
height?: number
Property Value
number
image
For points, the icon image name when displayed in a Symbol layer.
image?: string
Property Value
string
imageUrl
For points, the URL to a icon image. Can be a data URI or a URL that points to a CORs enabled endpoint.
imageUrl?: string
Property Value
string
offset
For points, the icon offset value to apply to icons when displayed in the symbol layer.
offset?: [number, number]
Property Value
[number, number]
popupTemplate
A template used to define how content is rendered inside of a popup.
popupTemplate?: azmaps.PopupTemplate
Property Value
rotation
For points, the rotation value to apply to icons when displayed in the symbol layer.
rotation?: number
Property Value
number
size
For points, the scale value to apply to icons when displayed in the symbol or bubble layer.
size?: number
Property Value
number
strokeColor
For lines and polygons, the color of a line or our polygon outline.
strokeColor?: string
Property Value
string
strokeOpacity
For lines and polygons, the opacity of a line or our polygon outline.
strokeOpacity?: number
Property Value
number
strokeWidth
For lines and polygons, the width of a line or our polygon outline.
strokeWidth?: number
Property Value
number
title
A common title field. Some XML files use 'name' instead, this value will be copied to this property.
title?: string
Property Value
string
visible
If the feature is visible or not.
visible?: boolean
Property Value
boolean