Go to documentation repository
Page History
General request format:
GET http://IP-address:port/web2/secure/kartas/{plan}/layers
Request parameters:
Parameter | Is required | Description |
---|---|---|
plan | Yes | Map ID |
Request example:
GET http://127.0.0.1:8085
plan – map id
There can be 1 or more layers
http://example.com:[port]/web2/secure/kartas/plan2/layers/
Sample of response:
<layers>
<layer>
<height>1000</height>
<id>base</id>
<mapId>plan</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>
</layers>
Parameters:
Height – height of layer’s image in pixels;
Width – width of layer’s image in pixels;
zoomMin – minimal zoom;
zoomMax – maximal zoom;
zoomStep – zoom step when zooming in or zooming out;
zoomDef – zoom by default.
...
Response example:
Code Block | ||
---|---|---|
| ||
<layers>
<layer>
<geo_h>10.0</geo_h>
<height>578</height>
<id>2</id>
<lat_bl>43.5905</lat_bl>
<lat_br>43.6875</lat_br>
<lat_c>43.6395</lat_c>
<lat_tl>43.5914</lat_tl>
<lat_tr>43.6885</lat_tr>
<lon_bl>43.4584</lon_bl>
<lon_br>43.4599</lon_br>
<lon_c>43.4809</lon_c>
<lon_tl>43.5018</lon_tl>
<lon_tr>43.5033</lon_tr>
<mapId>2</mapId>
<name>Layer 2</name>
<points>
<point>
<id>CAM:1</id>
<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>
<width>800</width>
<zoomDef>1.0</zoomDef>
<zoomMax>4.0</zoomMax>
<zoomMin>0.25</zoomMin>
<zoomStep>0.25</zoomStep>
</layer>
</layers> |
Response parameters
Parameter | Description |
---|---|
<layer> group parameters | |
geo_h | Height mark (see Configuring map binding to coordinate grid) |
height | Layer substrate height in pixels |
width | Layer substrate width in pixels |
id | Layer ID |
lat_bl | Latitude: bottom left corner |
lat_br | Latitude: bottom right corner |
lat_c | Latitude: center |
lat_tl | Latitude: top left corner |
lat_tr | Latitude: top right corner |
lon_bl | Longitude: bottom left corner |
lon_br | Longitude: bottom right corner |
lon_c | Longitude: center |
lon_tl | Longitude: top left corner |
lon_tr | Longitude: top right corner |
mapId | Map ID |
name | Layer name |
points | List of points on the layer |
zoomDef | Default scale |
zoomMax | Minimum scale |
zoomMin | Maximum scale |
zoomStep | Scale |
<point> group parameters | |
id | Object type and ID in the format TYPE:ID |
layerId | Layer ID |
mapId | Map 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) The parameter has non-zero value if:
|
longitude | Longitude (point coordinate) The parameter has non-zero value if:
|
x | The coordinate of the point relative to the substrate along the X axis |
y | The coordinate of the point relative to the substrate along the Y axis |