Versions Compared

Key

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

General request format: 

GET

Information on parameters is given in The list of layers for specific map section.

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

where plan is the Map ID;

base is the Layer ID.

Sample of response:

<layer>
    <height>1000</height>
    <id>base</id>
    <mapId>plan</mapId>

Request parameters:

ParameterIs requiredDescription
planYesMap ID
baseYesLayer ID

Request example:

GET http://127.0.0.1:8085/web2/secure/kartas/2/layers/2/

Response example:

Code Block
languagexml
<layer>
    <height>1000</height>
    <id>2</id>
    <mapId>2</mapId>
   

...

 <name>Base layer for plan</name>

...


    <width>1000</width>

...


    <zoomDef>1.0</zoomDef>

...


    <zoomMax>4.0</zoomMax>

...


    <zoomMin>0.25</zoomMin>

...


    <zoomStep>0.25</zoomStep>

...

 
</layer>

Response parameters:

ParameterDescription

height

Layer substrate height in pixels

width

Layer substrate width in pixels

id

Layer ID

mapId

Map ID

name

Layer name

zoomDef

Default scale

zoomMax

Minimum scale

zoomMin

Maximum scale

zoomStep

Scale