Entity Styles
Entity Styles dictate how an Entity is rendered. Their settings can range from fixed values to dynamic values based on Entity properties.
This article will cover how to manage Style records and descriptions about the related settings.
Data model
Below is the core data model for a Style. You can manage a record without populating the settings.
Check the end of this article for sections related to the specific settings.
Requesting records
You can request a list of all requests or an individual one. When a list is requested it'll exclude the settings JSON.
Get a list of Styles
Get Style by ID
Create and update records
You can create a record by performing a POST request to the same URL as the GET. If you specify the ID as '0' then it'll create a new record and return it. If you specify an existing ID then it'll update the record and return it.
Create or update Style
Delete a record
We don't provide any bulk deletion but you can delete by record ID. It follows the same pattern as before.
Delete Style
Style calculator
All Style settings run through a common Style calculator. So before we cover the specifics we'll run through information that is shared between any Style.
Any setting that can be dictated by an Entity attribute will be set as an array of calculator items. When an Entity is rendered, the calculator will run through each item and apply the first item that resolves with a value.
Alongside the visual settings we also let you set a setting called "altitudeOption". This dictates how the altitude is calculated for the Entity.
For example you may want to place all the Entities on the ground so you'll set the altitude option to "ClampToGround".
Point styling
Within this section we'll cover what point Style settings are available and how to use them.
We will cover the most supported settings. If you need more advanced settings then please contact us.
Please refer to the 'Style calculator' section above for definitions that are not explained here. Some are shared between all the types of styling.
Here is a point Style example. In this example only the colour is set and the rest use default values.
Polyline styling
Within this section we'll cover what polyline Style settings are available and how to use them.
We will cover the most supported settings. If you need more advanced settings then please contact us.
Please refer to the 'Style calculator' section above for definitions that are not explained here. Some are shared between all the types of styling.
Polygon styling
Within this section we'll cover what polygon Style settings are available and how to use them.
We will cover the most supported settings. If you need more advanced settings then please contact us.
Please refer to the 'Style calculator' section above for definitions that are not explained here. Some are shared between all the types of styling.
3D model styling
Within this section we'll cover what 3D model Style settings are available and how to use them.
We will cover the most supported settings. If you need more advanced settings then please contact us.
Please refer to the 'Style calculator' section above for definitions that are not explained here. Some are shared between all the types of styling.