Updating static map displayed in My House to use OS Maps API for iShare v5.8

Updating static map displayed in My House to use OS Maps API for iShare v5.8

To update the mini map displayed on your My House page, which is usually configured in the Property Details you need to follow the provided steps:

  1. Choose the OS Maps WMS layer of your preference by updating the base_osmapsapi.map file. Please ensure that you have the latest and updated version of the base_osmapsapi.map which you can find in the zip folder

    1. Open the base_osmapsapi.map file which is under E:\iShareData\LIVE\_MapServerConfig. You will see preconfigured all the OS Maps API WMS layers that you can use as your static map. What you have to do is:

      1. set STATUS DEFAULT on the layer that you wish to display and set STATUS OFF for all other layers

      2. update your API key in the URL of the CONNECTION parameter

      3. Here is a snippet of the file as an example

  2. Create a base map MapSource, which points to the above mapfile and import it in Studio under the BaseMaps node. Here is a MapSource ready for you to use: (The MapSource is also being placed in the zip folder).

    mstsc_uKbEWxzGHk.png



    mstsc_k1dbcPnFJo.png

  3. The final step is to update the settings for the mini-map under the My House node.

    1. Open the My House node and locate the layer that holds the settings for your mini-map (it is usually in the Property details layergroup):

    2. Double-click the Row, locate the MapGetImage.aspx Request in the HTML row, and replace the current MapSource that is used with the one we just created. In our case, it would be MapSource=mapsources/base_osmapsapi_static_map. For example
      the MapGetImage.aspx Request should look like the following:

      MapGetImage.aspx?RequestType=Map&MapWidth=400&MapHeight=400&MapSource=mapsources/base_osmapsapi_static_map&Easting=521876&Northing=160724&Zoom=100&mapid=-1&ServiceAction=GotoLocation&ZoomPin=1
    3. Save and confirm that your changes are visible:

      chrome_c1BmeL0zmm.png