ThemeMapping
Type

Find Address

Available fromThis can be left blank unless the How To is only available for a specific version of iShare


Overview

If you would like to change the default Zoom level used by iShare GIS when a user performs a Find Address then you may do this by editing the iShareGIS.aspx page.

Step-by-step guide

	<script type="text/javascript" src="js/lib/prototype-1.6.0.3.js"></script>
	<script type="text/javascript" src="FileIncluderJS.aspx"></script>
	<script type="text/javascript">
		Event.observe(window, 'load', function() {
			Astun.JS.IncludeJS('gis', function() {
				window.astun.app = new Astun.JS.MapApp("#ishare-gis", "gis",
					{
						branding: "<h1><a href=\"https://astuntech.atlassian.net/wiki/x/14AgAQ\">iShare GIS</a></h1>"
					}
				);
			});
		});
	</script>
// Set the locationZoomWidth to a small value so that the map zooms
// in to a large scale when a user selects an address from the
// address search.
if (!window.astun.settings) {
	window.astun.settings = {};
	}
		window.astun.settings.locationZoomWidth = 100;
	<script type="text/javascript" src="js/lib/prototype-1.6.0.3.js"></script>
	<script type="text/javascript" src="FileIncluderJS.aspx"></script>
	<script type="text/javascript">
		Event.observe(window, 'load', function() {
			Astun.JS.IncludeJS('gis', function() {
			// Set the locationZoomWidth to a small value so that the map zooms
			// in to a large scale when a user selects and address from the
			// address search.
			if (!window.astun.settings) {
				window.astun.settings = {};
			}
				window.astun.settings.locationZoomWidth = 100;
				window.astun.app = new Astun.JS.MapApp("#ishare-gis", "gis",
					{
						branding: "<h1><a href=\"https://astuntech.atlassian.net/wiki/x/14AgAQ\">iShare GIS</a></h1>"
					}
				);
			});
		});
	</script>
Before changeAfter change

Default ZoomZoom Width 100