Go to documentation repository
...
GET http://IP address:port/web2/secure/kartasvideo/{plan}/layers/{base}/points/getposition?typecam.id="OBJECT_TYPENUMBER"
| Parameter | Required | Description |
|---|---|---|
| plan | No | Map ID |
| base | No | Layer ID |
| type | No | Object type |
GET http://1271:1@127.0.0.1:8085/web2/secure/kartas/2/layers/2/points/?type=CAMvideo/getposition?cam.id=1
| Info | ||
|---|---|---|
| ||
If the display type of the added object on the map is different from Image, then the request receives an empty response. See also Attaching objects to the layers of interactive map. |
| Code Block | ||
|---|---|---|
| ||
<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>{ "y": "-89" "x": "-158" "z": "2" } |
| Parameter | Description |
|---|---|
| id | Object ID in the format "TYPE:ID", for example "CAM:1" |
| layerId | Layer ID |
| mapId | Map ID |
angle | Rotation angle of object icon |
geo_angle | Viewing angle (for camera, see Configuring the camera viewing angle display on the Map) |
latitude | Latitude (point coordinate). The parameter has a non-zero value if:
|
longitude | Longitude (point coordinate). The parameter has a non-zero value if:
|
| x | X coordinate of the upper left corner of the object icon |
| y | Y coordinate of the upper left corner of the object icon |
...