Map Schema
SNAPPING Element
See Also  Send comments on this topic.
Map Schema : SNAPPING Element

Glossary Item Box

Description

Used to specify the snapping settings for a layer in layer definitions and map files (*.apm).

Diagram

SNAPPING Element

Overview

SNAPPING
Used to specify the snapping settings for a layer in layer definitions and map files (*.apm).
edge optional Restriction of xs:string
Specifies whether edge snapping is active for the layer.
end optional Restriction of xs:string
Specifies whether end snapping is active for the layer.
tolerance optional xs:double
Snapping tolerance in meters. A value of 0 means that the map view's snapping tolerance is used.
vertex optional Restriction of xs:string
Specifies whether vertex snapping is active for the layer.
visible optional Restriction of xs:string
Specifies whether snapping buffers are drawn for the layer.

Attributes

NameTypeUseDefaultFixedDescription
edgeRestriction of xs:stringoptionalfalse Specifies whether edge snapping is active for the layer.
endRestriction of xs:stringoptionalfalse Specifies whether end snapping is active for the layer.
tolerancexs:doubleoptional0 Snapping tolerance in meters. A value of 0 means that the map view's snapping tolerance is used.
vertexRestriction of xs:stringoptionalfalse Specifies whether vertex snapping is active for the layer.
visibleRestriction of xs:stringoptionalfalse Specifies whether snapping buffers are drawn for the layer.

Source

<xs:element name="SNAPPING" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Used to specify the snapping settings for a layer in layer definitions and map files (*.apm).</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute default="false" name="edge">
      <xs:annotation>
        <xs:documentation>Specifies whether edge snapping is active for the layer.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="false" name="end">
      <xs:annotation>
        <xs:documentation>Specifies whether end snapping is active for the layer.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="0" name="tolerance" type="xs:double">
      <xs:annotation>
        <xs:documentation>Snapping tolerance in meters. A value of 0 means that the map view's snapping tolerance is used.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="false" name="vertex">
      <xs:annotation>
        <xs:documentation>Specifies whether vertex snapping is active for the layer.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute default="false" name="visible">
      <xs:annotation>
        <xs:documentation>Specifies whether snapping buffers are drawn for the layer.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

See Also

© 2013 All Rights Reserved.