| POST | /api/configuration |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MapDiv | body | string | No | |
| TocDiv | body | string | No | |
| WebMapOptions | body | WebMapOptions | No | |
| MapId | body | string | No | |
| SelectClickTolerancePx | body | int | No | |
| Basemaps | body | List<Basemap> | No | |
| AreaNameMap | body | List<AreaNameMap> | No | |
| Scalebar | body | Scalebar | No | |
| AreasGraphicsLayer | body | AreasGraphicsLayer | No | |
| ContactCountMode | body | CountMode? | No | |
| GeometryServiceUrl | body | string | No | |
| CustomerExtent | body | CustomerExtent | No | |
| CustomerBoundaryLayerName | body | string | No | |
| CustomerBoundarySymbol | body | CustomerBoundarySymbol | No | |
| CustomerBoundaryGeometry | body | Geometry | No | |
| Layers | body | List<LayerConfiguration> | No | |
| Uploader | body | Uploader | No | |
| Exporter | body | Exporter | No | |
| SearchSources | body | SearchSources | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
]
}
}