Copyright © 2015 Open Geospatial Consortium 61
gml:LineString RelativeTo
7.4.2 class ScreenAnchor XSD:
xsd:complexType name=ScreenAnchorType xsd:complexContent
xsd:extension base=AnchorType xsd:sequence
xsd:element name=style type=xsd:string maxOccurs=1 minOccurs=0
xsd:element name=class type=xsd:string maxOccurs=1 minOccurs=0
xsd:element name=assets maxOccurs=1 minOccurs=1 xsd:complexType
xsd:sequence xsd:element ref=Label maxOccurs=unbounded minOccurs=0
xsd:element name=assetRef maxOccurs= unbounded minOccurs=0
xsd:complexType xsd:attribute ref=xlink:href use=required
xsd:complexType xsd:element
xsd:sequence xsd:complexType
xsd:element xsd:sequence
xsd:extension xsd:complexContent
xsd:complexType xsd:element name=ScreenAnchor type=ScreenAnchorType
substitutionGroup=Anchor
Example a Feature also contains a ScreenAnchor showing some information on the Feature:
Feature id=myPlacemark anchors
ScreenAnchor style=bottom:0; left:0; width: 100; -- area spans the entire screen width, and is located at the bottom
of the screen; top is dynamic -- assets
Label src[CDATA[divbMy Restaurantb is wonderful, come in and
have a seatdiv]]src Label
assets ScreenAnchor
anchors Feature
Copyright © 2015 Open Geospatial Consortium 62
7.5 interface VisualAsset
Requirement
http:www.opengis.netspecarml2.0reqmodelVisualAssetinterface VisualAsset only serves as an interface for other objects defined in the encoding and may not be used
directly in the encoding. XSD :
xsd:complexType name=VisualAssetType abstract=true xsd:complexContent
xsd:extension base=ARElementType xsd:sequence
xsd:element name=enabled type=xsd:boolean maxOccurs=1 minOccurs=0
xsd:element name=zOrder type=xsd:int maxOccurs=1 minOccurs=0
xsd:element name=conditions maxOccurs=1 minOccurs=0 xsd:complexType
xsd:sequence xsd:element ref=Condition maxOccurs=unbounded
minOccurs=1 xsd:sequence
xsd:complexType xsd:element
xsd:element name=Orientation type=OrientationType maxOccurs=1 minOccurs=0
xsd:element name=ScalingMode type=ScalingModeType maxOccurs=1 minOccurs=0
xsd:sequence xsd:extension
xsd:complexContent xsd:complexType
xsd:element name=VisualAsset type=VisualAssetType abstract=true substitutionGroup=ARElement
Example:
VisualAsset id=myVisualAsset enabledtrueenabled
zOrder0zOrder Orientation
roll90roll tilt90tilt
heading90heading Orientation
Conditions ...
Conditions VisualAsset