Use Alloy layers in another map
How to use Alloy layers in another map
Overview
You can extract layer data, which can be added to other map systems. There are two endpoint types that are used to query a layer and return information that can be displayed on a map. Both queries return map tiles that are GeoJson features in an aggregated format. The properties contained within the features are dependent on whether one or more items are contained within the tile.
network
If the tile contains more than one item, then the following properties are returned:
- type: A string whose value is SimplifiedGeometry
- styleId: The id of the style that originated this feature
cluster
If the tile contains more than one item, then the following properties are returned:
- type: A string whose value is Cluster
- styleId: The id of the style that originated this feature
- count: The number of items in this cluster / feature
- bbox: The bounding box containing the items in this cluster
In both endpoint types if the tile contains only one item, then the following properties are returned:
- type: A string whose value is Item
- styleId: The id of the style that originated this feature
- designCode: The code of the design to which the item belongs
- itemId: The item id
- colour: The item colour
- icon: The item icon code
For more information go to Aqs query.
Example
The following example illustrates how to get data for a street lighting layer to use on a map.