AlertSense Map Service

<back to all web services

PostMapConfigurationRequest

The following routes are available for this service:
POST/api/configuration
MapConfiguration Parameters:
NameParameterData TypeRequiredDescription
MapDivbodystringNo
TocDivbodystringNo
WebMapOptionsbodyWebMapOptionsNo
MapIdbodystringNo
SelectClickTolerancePxbodyintNo
BasemapsbodyList<Basemap>No
AreaNameMapbodyList<AreaNameMap>No
ScalebarbodyScalebarNo
AreasGraphicsLayerbodyAreasGraphicsLayerNo
ContactCountModebodyCountMode?No
GeometryServiceUrlbodystringNo
CustomerExtentbodyCustomerExtentNo
CustomerBoundaryLayerNamebodystringNo
CustomerBoundarySymbolbodyCustomerBoundarySymbolNo
CustomerBoundaryGeometrybodyGeometryNo
LayersbodyList<LayerConfiguration>No
UploaderbodyUploaderNo
ExporterbodyExporterNo
SearchSourcesbodySearchSourcesNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/PostMapConfigurationRequest HTTP/1.1 
Host: elm.alertsense.com 
Content-Type: text/jsv
Content-Length: length

{
	MapDiv: String,
	TocDiv: String,
	WebMapOptions: 
	{
		usePopupManager: False,
		editable: False,
		mapOptions: 
		{
			slider: False,
			logo: False
		}
	},
	MapId: String,
	SelectClickTolerancePx: 0,
	Basemaps: 
	[
		{
			Title: String,
			Url: String,
			ThumbnailUrl: String
		}
	],
	AreaNameMap: 
	[
		{
			FeatureClassName: String,
			AreaNameField: String
		}
	],
	Scalebar: 
	{
		AttachTo: String,
		ScalebarUnit: String,
		ScalebarStyle: String
	},
	AreasGraphicsLayer: 
	{
		Name: String,
		DefaultSymbol: 
		{
			FillColor: String,
			FillStyle: String,
			LineColor: String,
			LineStyle: String,
			LineWidth: 0
		},
		SelectedSymbol: 
		{
			FillColor: String,
			FillStyle: String,
			LineColor: String,
			LineStyle: String,
			LineWidth: 0
		},
		ActiveSymbol: 
		{
			FillColor: String,
			FillStyle: String,
			LineColor: String,
			LineStyle: String,
			LineWidth: 0
		},
		Attributes: 
		[
			String
		],
		AreaShapeAttributeName: String,
		AreaIdAttributeName: String,
		ZoomToExtentExpandFactor: 0,
		EditExtentExpandFactor: 0
	},
	ContactCountMode: ContactLocation,
	GeometryServiceUrl: String,
	CustomerExtent: 
	{
		type: String,
		xmin: 0,
		ymin: 0,
		xmax: 0,
		ymax: 0,
		spatialReference: 
		{
			wkid: 0,
			latestWkid: 0
		},
		Partwise: {}
	},
	CustomerBoundaryLayerName: String,
	CustomerBoundarySymbol: 
	{
		LineColor: String,
		LineWidth: 0,
		LineStyle: String
	},
	CustomerBoundaryGeometry: 
	{
		type: String,
		rings: 
		[
			[
				[
					0
				]
			]
		],
		spatialReference: 
		{
			wkid: 0,
			latestWkid: 0
		}
	},
	Layers: 
	[
		{
			id: 0,
			name: String,
			source: String,
			type: GeoJson,
			url: String,
			renderer: 
			{
				type: String,
				symbol: 
				{
					type: String,
					url: String,
					imageData: String,
					width: 0,
					height: 0
				}
			},
			allowRefresh: False,
			visible: False
		}
	],
	Uploader: 
	{
		GenerateServiceUrl: String,
		MaxRecordCount: 0,
		GeneralizeScale: 0,
		NumberOfDigitsAfterDecimal: 0,
		AreaNameField: String
	},
	Exporter: 
	{
		ExportServiceUrl: String,
		PreserveScale: False
	},
	SearchSources: 
	{
		Locators: 
		[
			{
				Url: String,
				OutFields: 
				[
					String
				],
				Name: String,
				Placeholder: String,
				CountryCode: String
			}
		],
		FeatureLayers: 
		[
			{
				Url: String,
				SearchFields: 
				[
					String
				],
				OutFields: 
				[
					String
				],
				Name: String,
				MaxResults: 0,
				MaxSuggestions: 0,
				EnableSuggestions: False,
				MinCharacters: 0
			}
		]
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	MapDiv: String,
	TocDiv: String,
	WebMapOptions: 
	{
		usePopupManager: False,
		editable: False,
		mapOptions: 
		{
			slider: False,
			logo: False
		}
	},
	MapId: String,
	SelectClickTolerancePx: 0,
	Basemaps: 
	[
		{
			Title: String,
			Url: String,
			ThumbnailUrl: String
		}
	],
	AreaNameMap: 
	[
		{
			FeatureClassName: String,
			AreaNameField: String
		}
	],
	Scalebar: 
	{
		AttachTo: String,
		ScalebarUnit: String,
		ScalebarStyle: String
	},
	AreasGraphicsLayer: 
	{
		Name: String,
		DefaultSymbol: 
		{
			FillColor: String,
			FillStyle: String,
			LineColor: String,
			LineStyle: String,
			LineWidth: 0
		},
		SelectedSymbol: 
		{
			FillColor: String,
			FillStyle: String,
			LineColor: String,
			LineStyle: String,
			LineWidth: 0
		},
		ActiveSymbol: 
		{
			FillColor: String,
			FillStyle: String,
			LineColor: String,
			LineStyle: String,
			LineWidth: 0
		},
		Attributes: 
		[
			String
		],
		AreaShapeAttributeName: String,
		AreaIdAttributeName: String,
		ZoomToExtentExpandFactor: 0,
		EditExtentExpandFactor: 0
	},
	ContactCountMode: ContactLocation,
	GeometryServiceUrl: String,
	CustomerExtent: 
	{
		type: String,
		xmin: 0,
		ymin: 0,
		xmax: 0,
		ymax: 0,
		spatialReference: 
		{
			wkid: 0,
			latestWkid: 0
		},
		Partwise: {}
	},
	CustomerBoundaryLayerName: String,
	CustomerBoundarySymbol: 
	{
		LineColor: String,
		LineWidth: 0,
		LineStyle: String
	},
	CustomerBoundaryGeometry: 
	{
		type: String,
		rings: 
		[
			[
				[
					0
				]
			]
		],
		spatialReference: 
		{
			wkid: 0,
			latestWkid: 0
		}
	},
	Layers: 
	[
		{
			id: 0,
			name: String,
			source: String,
			type: GeoJson,
			url: String,
			renderer: 
			{
				type: String,
				symbol: 
				{
					type: String,
					url: String,
					imageData: String,
					width: 0,
					height: 0
				}
			},
			allowRefresh: False,
			visible: False
		}
	],
	Uploader: 
	{
		GenerateServiceUrl: String,
		MaxRecordCount: 0,
		GeneralizeScale: 0,
		NumberOfDigitsAfterDecimal: 0,
		AreaNameField: String
	},
	Exporter: 
	{
		ExportServiceUrl: String,
		PreserveScale: False
	},
	SearchSources: 
	{
		Locators: 
		[
			{
				Url: String,
				OutFields: 
				[
					String
				],
				Name: String,
				Placeholder: String,
				CountryCode: String
			}
		],
		FeatureLayers: 
		[
			{
				Url: String,
				SearchFields: 
				[
					String
				],
				OutFields: 
				[
					String
				],
				Name: String,
				MaxResults: 0,
				MaxSuggestions: 0,
				EnableSuggestions: False,
				MinCharacters: 0
			}
		]
	}
}