How To Set Map Parameters
Many aspects of the map viewer's runtime behaviour can be configured by setting map parameters in the embedViewer API. Parameters are set by adding name/value pairs to the passed JavaScript object.
<html>
<head>
<script type="text/javascript" src="map_data/swfobject.js"></script>
<script type="text/javascript" src="map_data/avenza.js"></script>
<script type="text/javascript">
var theMap = AVENZA.embedViewer("map", "750", "500",
{
baseURL:"map_data/",
flashSecuritySandbox: AVENZA.AUTO_SANDBOX,
panWidget:false,
zoomMax:200
}
);
</script>
</head>
<body>
<div style="position:relative">
<div id="map2">
</div>
</div>
</body>
</html>
Beware that a common mistake is to forget to add commas (",") between newly added name/value pairs.
You can see a live example here.
