Table of Contents

Create geofence layer

To create a graphic layer with geofences, use the command render/create_zones_layer:

svc=render/create_zones_layer&params={"layerName":<text>,
				      "flags":<uint>,
				      "zones":[	
				    	 {
				    		"resourceId":<long>,
				    		"zoneId":[<long>]
				    	 }
				      ]}

Parameters

Name Description
layerName layer name
flags flags: 0x1 - show geofences names; 0x2 - group geofences
zones array of geofences
resourceId resource ID
zoneId geofence ID

Reponse

{
	"name":<text>,	/* layer name */
	"bounds":[
		<double>,	/* minimal latitude */
		<double>,	/* minimal longitude */
		<double>,	/* maximal latitude */
		<double>	/* maximal longitude */
	]
}

See also Get tiles of graphic layers.