Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General request format:

http://example.com:[port]IP-address:port/web2/secure/kartas/{plan}/layers/{base}/points/

...

ParameterIs requiredDescription
planNoMap ID
baseNoLayer ID

The coordinate plane is attached to the layer as follows:

I.e. x and y cannot be negative, but can be fractional.


Example request:

http://172127.170.110.721:8085/web2/secure/kartas/12/layers/12/points/

Example response:

Info
titleNote.

If the display type of the object on the map is different from Image, then an empty response is received. See also Attaching objects to the layers of interactive map

<points>
    <point>

...


Code Block
languagexml
<points>
  <point>
    <id>CAM:1</id>

...

        <layerId>base</layerId>
        <mapId>plan</mapId>
        <x>100.0</x>
        <y>100.0</y>
    </point>
    <point>
        <id>CAM:2</id>
        <layerId>base</layerId>
        <mapId>plan</mapId>
        <x>200.0</x>
        <y>200.0</y>
    </point>
    <point>
        <id>GRAY:1</id>
        <layerId>base</layerId>
        <mapId>plan</mapId>
        <x>300.0</x>
        <y>300.0</y>
    </point>
    <point>
        <id>GRAY:2</id>
        <layerId>base</layerId>
        <mapId>plan</mapId>
        <x>400.0</x>
        <y>400.0</y>
    </point>
    <point>
        <id>GRELE:1</id>
        <layerId>base</layerId>
        <mapId>plan</mapId>
        <x>500.0</x>
        <y>500.0</y>
    </point>
    <point>
        <id>GRELE:2</id>
        <layerId>base</layerId>
        <mapId>plan</mapId>
        <x>600.0</x>
        <y>600.0</y>
    </point>

    <layerId>2</layerId>
    <mapId>2</mapId>
    <angle>0.0</angle>
    <geo_angle>0.0</geo_angle>
    <latitude>43.47727</latitude>
    <longitude>43.602381</longitude>
    <x>95.0</x>
    <y>329.0</y>
  </point>
</points>


ParameterDescription
idObject ID in the format "TYPE:ID", for example "CAM:1"
layerIdLayer ID
mapIdMap ID

angle

Object icon rotation angle

geo_angle

Viewing angle (for camera, see Configuring the camera viewing angle display on the Map)

latitude

Latitude (point coordinate)

longitude

Longitude (point coordinate)

xX coordinate of the upper left corner of the object icon
yY coordinate of the upper left corner of the object icon


The coordinate plane is attached to the layer as follows:

 Image Added

I.e. x and y cannot be negative, but can be fractional.