Moxi Media Inc.
<scale-restriction> Discussion Forum

IMF Developer's Guide » Site Configuration » <scale-restriction>  

The <scale-restriction> element is used to specify the view scale of the map that the user will be constrained to. The user will not be able to zoom beyond the specified scale using any means. If this element is not included in the site configuration XML, there is no scale limit, and the user can zoom in or out as far as they like.

Frequency Parent Elements (the <scale-restriction> element is valid within):
POS1 <site-config>
   

Frequency Description (in this context)
POS1 This optional element may appear only once within the parent element. The <scale-restriction> element may appear once in the <site-config> element in the specified sequence.
   

Attributes Description
max-scale The maximum scale that the user can display the map at, using simple numbers. For example: max-scale="100000" means that the user cannot view a map at a smaller scale than 1:100000. If the <scale-restriction> element isn't included in the site configuration file, there is no restriction. Optional. If the element doesn't have a max-scale attribute, there is no scale restriction on the maximum side.
min-scale The minimum scale that the user can display the map at, using simple numbers. For example: min-scale="1000" means that the user cannot view a map at a larger scale than 1:1000. If the <scale-restriction> element isn't included in the site configuration file, there is no restriction. Optional. If the element doesn't have a min-scale attribute, there is no scale restriction on the minimum side.