|
When displaying the My House page for an address it is usual to add a mini map showing the location of the current address with the Unique Property Reference Number (UPRN). Depending upon how this is configured you can alter the:
Enter a Layer Name e.g. mini-map.
Alter the Display Name as you wish e.g. Mini Map. If you don't want a name displayed for this virtual layer then enter an underscore here.
You may need to enter more than one underscore if you already have a virtual layer with one underscore. |
A specific Map Source for the mini map has to be created under the BaseMaps node. This Map Source has to be a WMS Basemap Type have a URI to the local MapServer i.e. not ADS. Your Astun Consultant would normally create this for you. |
This example has a Display Name defined for the Virtual Layer in Studio.
<dl><dd id="MiniMap" style="text-align:center;"><img src="MapGetImage.aspx?RequestType=Map&MapWidth=200&MapHeight=200&MapSource=Astun/base_ADS_OSOpen_Legacy&Easting=##easting##&Northing=##northing##&Zoom=620&mapid=-1&ServiceAction=GotoLocation&ZoomPin=1" alt="##name##" /><br /><strong>Unique Property Ref (UPRN)</strong><br />##uid##, E: ##easting##m, N: ##northing##m</dd></dl> |
To change the size of the map alter the MapWidth and MapHeight entries. To change the map alter the MapSource entry - this is the relative path to the Map Source .xml file without the xml extension.
Lastly you can add what is displayed underneath the map. In the above scenario this is:
<strong>Unique Property Ref (UPRN)</strong><br />##uid##, E: ##easting##m, N: ##northing##m |
Here you can also use Virtual Layer tags which will be replaced with the relevant information when the page is displayed.
This example does not have a Display Name defined for the Virtual Layer in Studio.
<dl><dd id="MiniMap" style="text-align:center;"><img src="MapGetImage.aspx?RequestType=Map&MapWidth=200&MapHeight=200&MapSource=Astun/base_Aerial_Legacy&Easting=##easting##&Northing=##northing##&Zoom=180&mapid=-1&ServiceAction=GotoLocation&ZoomPin=1" alt="##name##" /><br />© Cartoghraphic Engineering, Open Data License</dd></dl> |
In the above example where are using a different MapSource and instead of displaying the Property information we are displaying a copyright statement.