Contents
The Map component can be edited in a number of ways. There are a number of settings that can be edited in the Designer. Other properties, set during the publishing process, can be changed by editing the map.js file.
Map Properties Options in the Designer:
Exportable?
If this box is ticked you will see an export button in the top right hand corner of the map when you hover with the mouse over it. Clicking this button will open the map graphic as an image in a pop-up window. From there you can save the image through the right-click menu.
Max Zoom Allowed and Min Zoom Allowed
Using these properties you can define zoom limits for your map. The values need to be in map units, e.g. Max Zoom Allowed: 500000, Min Zoom Allowed: 10000000. When using Google Maps as a background layer, you will need to specify zoom levels instead. Possible zoom level values are 0 – 21, where 0 is the level furthest zoomed out and 21 is the level furthest zoomed in, e.g. Max Zoom Allowed: 15, Min Zoom Allowed: 5.
Background Folder
If you are using a background image collection as your background layer and you want to keep the background images saved in a different location than your report files, you can define the path to the folder which includes the background images in the property ‘Background Folder’.
Map Copyright
If you use Map data which requires a copyright reference, please do not forget to write this in the ‘Map Copyright’ property.
Tip
This property contains the code for the tooltip you see when you hover over the map features. By default this code looks like this:
${featureName}: ${indicatorValue}
${featureName}
and ${indicatorValue}
are substitution variables. Their values are dynamic and change depending on the map feature you mouse over.
The colon in between the variables is static text. The image below shows how the default tooltip looks for the post code sector with the name ‘EH5 3’.
You can add any other static text, substitution variables or HTML tags if you like.
Example 1:
${featureName}: ${indicatorValue}<br/>Count: ${count}
In addition to the default area name and indicator value, this code adds a new line (<br/>
) with ‘Count: ’ as a static text and the associate with the name ‘count’ as a dynamic value.
Example 2:
${featureName}: ${count}
This will replace the indicator value with the count associate.
Include Search Tool
A Search Tool can be enabled in the Map component which works either using the Google Maps search engine if you use Google Maps as a background layer or with the ArcGIS Online geocoding functionality if your map data is in the projection ‘Web Mercator (Auxiliary Sphere)’.
The Search Tool allows the end-user to search the map in an InstantAtlas report. Simply type into the text field a post code, street name or any other location. If the Search Tool is able to find results within the spatial bounding box of the base layer (i.e. the geographic area of the report), it will display them in a drop down list underneath the text field.
Selecting an item out of the drop down list will centre the map on this location and a marker will appear.
Please note that the Search Tool will only work once your report is saved on a webserver and served via https.
Zoom On Filter
When a filter is applied, the map by default zooms to the combined bounding box of the filtered map features. This default behaviour can be switched off using the ‘Zoom On Filter’ property.