Setup and Configure WebMap

  1. Ensure you have installed WebMap 9.0.2167 or later. WebMap should be serving an embedded map and running; it should also be accessible to Power BI users,
  2. Create the Map you wish to embed using the WebMap Admin Interface. Enable the Allow Embedded Map option (General Settings > Map Settings ).
  3. Ensure the Coordinate Reference System (CRS) used matches the coordinates contained within your data source.
  4. The Service URL for WebMap is the root URL of the WebMap site - e.g. https://mapping/SISWebMap9. If you intend to publish your report publicly, ensure the WebMap instance you are using is also publicly accessible.
  5. Add this URL to the Proxy Configuration of WebMap.
  6. Enable HTTPS on the WebMap server.
  7. Ensure the Proxy Host for the Map you want to use is set to the publicly accessible address. It should also match the address used on the SSL certificate e.g. https://mapping/SISWebMap9/proxy.axd?
  8. Configure the Map Name using the WebMap Admin Interface; this can include base mapping and business layers. Use different maps to provide user-defined cartographic content.
  9. Ensure Allow Embedded Map option is enabled when using WebMap 9.0.2167 or later.

A note on Layer Switcher

To enable the Layer Switcher control in Power BI, edit WebMap’s web.config file to allow PATCH requests to be made through third party clients. This can be found in the C:\inetpub\wwwroot\SISWebMap9 folder.

    In the web.config file, find the <customHeaders> section:

    <customHeaders>

    <remove name="X-Powered-By"/>

    <add name="X-XSS-Protection" value="1;mode=block"/>

    <add name="X-Content-Type-Options" value="nosniff"/>

    <add name="Cache-control" value="no-store"/>

    <add name="X-Frame-Options" value="deny"/>

    <add name="Access-Control-Allow-Origin" value="*"/>

    <add name="Access-Control-Allow-Credentials" value="true"/>

    <add name="Access-Control-Allow-Methods" value="GET,POST,OPTIONS"/>

    <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept"/>

    </customHeaders>

    Update the Access-Control-Allow-Methods value to include PATCH methods:

    Copy
    <add name="Access-Control-Allow-Methods" value="GET,POST,PATCH,OPTIONS"/>