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 .xml suffix or ?format=xml

HTTP + XML

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

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

<PostMapConfigurationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlertSense.Elm.ServiceModel.Mapping">
  <AreaNameMap>
    <AreaNameMap>
      <AreaNameField>String</AreaNameField>
      <FeatureClassName>String</FeatureClassName>
    </AreaNameMap>
  </AreaNameMap>
  <AreasGraphicsLayer>
    <ActiveSymbol>
      <FillColor>String</FillColor>
      <FillStyle>String</FillStyle>
      <LineColor>String</LineColor>
      <LineStyle>String</LineStyle>
      <LineWidth>0</LineWidth>
    </ActiveSymbol>
    <AreaIdAttributeName>String</AreaIdAttributeName>
    <AreaShapeAttributeName>String</AreaShapeAttributeName>
    <Attributes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Attributes>
    <DefaultSymbol>
      <FillColor>String</FillColor>
      <FillStyle>String</FillStyle>
      <LineColor>String</LineColor>
      <LineStyle>String</LineStyle>
      <LineWidth>0</LineWidth>
    </DefaultSymbol>
    <EditExtentExpandFactor>0</EditExtentExpandFactor>
    <Name>String</Name>
    <SelectedSymbol>
      <FillColor>String</FillColor>
      <FillStyle>String</FillStyle>
      <LineColor>String</LineColor>
      <LineStyle>String</LineStyle>
      <LineWidth>0</LineWidth>
    </SelectedSymbol>
    <ZoomToExtentExpandFactor>0</ZoomToExtentExpandFactor>
  </AreasGraphicsLayer>
  <Basemaps>
    <Basemap>
      <Title>String</Title>
      <Url>String</Url>
      <ThumbnailUrl>String</ThumbnailUrl>
    </Basemap>
  </Basemaps>
  <CustomerBoundaryGeometry>
    <rings xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:ArrayOfArrayOfdecimal>
        <d3p1:ArrayOfdecimal>
          <d3p1:decimal>0</d3p1:decimal>
        </d3p1:ArrayOfdecimal>
      </d3p1:ArrayOfArrayOfdecimal>
    </rings>
    <spatialReference>
      <latestWkid>0</latestWkid>
      <wkid>0</wkid>
    </spatialReference>
    <type>String</type>
  </CustomerBoundaryGeometry>
  <CustomerBoundaryLayerName>String</CustomerBoundaryLayerName>
  <CustomerBoundarySymbol>
    <LineColor>String</LineColor>
    <LineStyle>String</LineStyle>
    <LineWidth>0</LineWidth>
  </CustomerBoundarySymbol>
  <CustomerExtent>
    <Partwise />
    <spatialReference>
      <latestWkid>0</latestWkid>
      <wkid>0</wkid>
    </spatialReference>
    <type>String</type>
    <xmax>0</xmax>
    <xmin>0</xmin>
    <ymax>0</ymax>
    <ymin>0</ymin>
  </CustomerExtent>
  <Exporter>
    <ExportServiceUrl>String</ExportServiceUrl>
    <PreserveScale>false</PreserveScale>
  </Exporter>
  <GeometryServiceUrl>String</GeometryServiceUrl>
  <MapDiv>String</MapDiv>
  <MapId>String</MapId>
  <Scalebar>
    <AttachTo>String</AttachTo>
    <ScalebarStyle>String</ScalebarStyle>
    <ScalebarUnit>String</ScalebarUnit>
  </Scalebar>
  <SearchSources>
    <FeatureLayers>
      <FeatureLayer>
        <EnableSuggestions>false</EnableSuggestions>
        <MaxResults>0</MaxResults>
        <MaxSuggestions>0</MaxSuggestions>
        <MinCharacters>0</MinCharacters>
        <Name>String</Name>
        <OutFields xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </OutFields>
        <SearchFields xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </SearchFields>
        <Url>String</Url>
      </FeatureLayer>
    </FeatureLayers>
    <Locators>
      <Locator>
        <CountryCode>String</CountryCode>
        <Name>String</Name>
        <OutFields xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </OutFields>
        <Placeholder>String</Placeholder>
        <Url>String</Url>
      </Locator>
    </Locators>
  </SearchSources>
  <SelectClickTolerancePx>0</SelectClickTolerancePx>
  <TocDiv>String</TocDiv>
  <Uploader>
    <AreaNameField>String</AreaNameField>
    <GeneralizeScale>0</GeneralizeScale>
    <GenerateServiceUrl>String</GenerateServiceUrl>
    <MaxRecordCount>0</MaxRecordCount>
    <NumberOfDigitsAfterDecimal>0</NumberOfDigitsAfterDecimal>
  </Uploader>
  <WebMapOptions>
    <editable>false</editable>
    <mapOptions>
      <logo>false</logo>
      <slider>false</slider>
    </mapOptions>
    <usePopupManager>false</usePopupManager>
  </WebMapOptions>
  <contactCountMode>ContactLocation</contactCountMode>
  <layers>
    <LayerConfiguration>
      <allowRefresh>false</allowRefresh>
      <id>0</id>
      <name>String</name>
      <renderer>
        <symbol>
          <height>0</height>
          <imageData>String</imageData>
          <type>String</type>
          <url>String</url>
          <width>0</width>
        </symbol>
        <type>String</type>
      </renderer>
      <source>String</source>
      <type>GeoJson</type>
      <url>String</url>
      <visible>false</visible>
    </LayerConfiguration>
  </layers>
</PostMapConfigurationRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PostMapConfigurationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlertSense.Elm.ServiceModel.Mapping">
  <AreaNameMap>
    <AreaNameMap>
      <AreaNameField>String</AreaNameField>
      <FeatureClassName>String</FeatureClassName>
    </AreaNameMap>
  </AreaNameMap>
  <AreasGraphicsLayer>
    <ActiveSymbol>
      <FillColor>String</FillColor>
      <FillStyle>String</FillStyle>
      <LineColor>String</LineColor>
      <LineStyle>String</LineStyle>
      <LineWidth>0</LineWidth>
    </ActiveSymbol>
    <AreaIdAttributeName>String</AreaIdAttributeName>
    <AreaShapeAttributeName>String</AreaShapeAttributeName>
    <Attributes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Attributes>
    <DefaultSymbol>
      <FillColor>String</FillColor>
      <FillStyle>String</FillStyle>
      <LineColor>String</LineColor>
      <LineStyle>String</LineStyle>
      <LineWidth>0</LineWidth>
    </DefaultSymbol>
    <EditExtentExpandFactor>0</EditExtentExpandFactor>
    <Name>String</Name>
    <SelectedSymbol>
      <FillColor>String</FillColor>
      <FillStyle>String</FillStyle>
      <LineColor>String</LineColor>
      <LineStyle>String</LineStyle>
      <LineWidth>0</LineWidth>
    </SelectedSymbol>
    <ZoomToExtentExpandFactor>0</ZoomToExtentExpandFactor>
  </AreasGraphicsLayer>
  <Basemaps>
    <Basemap>
      <Title>String</Title>
      <Url>String</Url>
      <ThumbnailUrl>String</ThumbnailUrl>
    </Basemap>
  </Basemaps>
  <CustomerBoundaryGeometry>
    <rings xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:ArrayOfArrayOfdecimal>
        <d3p1:ArrayOfdecimal>
          <d3p1:decimal>0</d3p1:decimal>
        </d3p1:ArrayOfdecimal>
      </d3p1:ArrayOfArrayOfdecimal>
    </rings>
    <spatialReference>
      <latestWkid>0</latestWkid>
      <wkid>0</wkid>
    </spatialReference>
    <type>String</type>
  </CustomerBoundaryGeometry>
  <CustomerBoundaryLayerName>String</CustomerBoundaryLayerName>
  <CustomerBoundarySymbol>
    <LineColor>String</LineColor>
    <LineStyle>String</LineStyle>
    <LineWidth>0</LineWidth>
  </CustomerBoundarySymbol>
  <CustomerExtent>
    <Partwise />
    <spatialReference>
      <latestWkid>0</latestWkid>
      <wkid>0</wkid>
    </spatialReference>
    <type>String</type>
    <xmax>0</xmax>
    <xmin>0</xmin>
    <ymax>0</ymax>
    <ymin>0</ymin>
  </CustomerExtent>
  <Exporter>
    <ExportServiceUrl>String</ExportServiceUrl>
    <PreserveScale>false</PreserveScale>
  </Exporter>
  <GeometryServiceUrl>String</GeometryServiceUrl>
  <MapDiv>String</MapDiv>
  <MapId>String</MapId>
  <Scalebar>
    <AttachTo>String</AttachTo>
    <ScalebarStyle>String</ScalebarStyle>
    <ScalebarUnit>String</ScalebarUnit>
  </Scalebar>
  <SearchSources>
    <FeatureLayers>
      <FeatureLayer>
        <EnableSuggestions>false</EnableSuggestions>
        <MaxResults>0</MaxResults>
        <MaxSuggestions>0</MaxSuggestions>
        <MinCharacters>0</MinCharacters>
        <Name>String</Name>
        <OutFields xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </OutFields>
        <SearchFields xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </SearchFields>
        <Url>String</Url>
      </FeatureLayer>
    </FeatureLayers>
    <Locators>
      <Locator>
        <CountryCode>String</CountryCode>
        <Name>String</Name>
        <OutFields xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </OutFields>
        <Placeholder>String</Placeholder>
        <Url>String</Url>
      </Locator>
    </Locators>
  </SearchSources>
  <SelectClickTolerancePx>0</SelectClickTolerancePx>
  <TocDiv>String</TocDiv>
  <Uploader>
    <AreaNameField>String</AreaNameField>
    <GeneralizeScale>0</GeneralizeScale>
    <GenerateServiceUrl>String</GenerateServiceUrl>
    <MaxRecordCount>0</MaxRecordCount>
    <NumberOfDigitsAfterDecimal>0</NumberOfDigitsAfterDecimal>
  </Uploader>
  <WebMapOptions>
    <editable>false</editable>
    <mapOptions>
      <logo>false</logo>
      <slider>false</slider>
    </mapOptions>
    <usePopupManager>false</usePopupManager>
  </WebMapOptions>
  <contactCountMode>ContactLocation</contactCountMode>
  <layers>
    <LayerConfiguration>
      <allowRefresh>false</allowRefresh>
      <id>0</id>
      <name>String</name>
      <renderer>
        <symbol>
          <height>0</height>
          <imageData>String</imageData>
          <type>String</type>
          <url>String</url>
          <width>0</width>
        </symbol>
        <type>String</type>
      </renderer>
      <source>String</source>
      <type>GeoJson</type>
      <url>String</url>
      <visible>false</visible>
    </LayerConfiguration>
  </layers>
</PostMapConfigurationResponse>