Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten

URL: https://123.123.123.123/map_module/mapeditors/saveItem.json?angular=true

Methode: POST

Response: JSON


JSON for inserting map items via REST API
{
    "action": "add_or_edit",
    "Mapitem":{
		"iconset":"$ICONSET",
		"label_possition": 0,
		"map_id":$MAP_ID,
		"object_id":"$OBJECT_ID",
		"show_label": true,
		"x":"10",
    	"y":"456",
		"z_index": 0,
    	"type":"$TYPE"
    }
}



Response on successful API call
{
	"Mapitem":{
		"Mapitem":{
			"id":$ID,
			"map_id":$MAP_ID,
			"x":757,
			"y":69,
			"limit":null,
			"iconset":"$ICONSET",
			"type":"$TYPE",
			"object_id":$OBJECT_ID,
			"z_index":"0",
			"show_label":true,
			"label_possition":0,
			"display":true
		}
	}
}











  • Keine Stichwörter