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:
Choose the OS Maps WMS layer of your preference by updating the
base_osmapsapi.mapfile. Please ensure that you have the latest and updated version of thebase_osmapsapi.mapwhich you can find in the zip folderOpen the
base_osmapsapi.mapfile which is underE:\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:set
STATUS DEFAULTon the layer that you wish to display and setSTATUS OFFfor all other layersupdate your API key in the URL of the
CONNECTIONparameterHere is a snippet of the file as an example
Create a base map MapSource, which points to the above mapfile and import it in Studio under the
BaseMapsnode. Here is a MapSource ready for you to use: (The MapSource is also being placed in the zip folder).The final step is to update the settings for the mini-map under the
My Housenode.Open the
My Housenode and locate the layer that holds the settings for your mini-map (it is usually in theProperty detailslayergroup):Double-click the
Row, locate theMapGetImage.aspxRequest in theHTMLrow, and replace the current MapSource that is used with the one we just created. In our case, it would beMapSource=mapsources/base_osmapsapi_static_map. For example
theMapGetImage.aspxRequest 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=1Save and confirm that your changes are visible: