Jeff,
Thanks for using Map Suite Forum, hope you enjoy learning and sharing here.
Map1.RestrictedExtent by default is null, but you cannot explicitly set it to null, this is a bug and we will solve it in the next version, thanks for pointing that out. Now following are some suggestions for a large enough restrictedExtent
// If MapUnit is Meter
Map1.RestrictedExtent = new RectangleShape(-20037508, 20037508, 20037508, -20037508);
// If MapUnit is DecimalDegree
Map1.RestrictedExtent = new RectangleShape(-180, 180, 180, -180);
here is a better solution using client side API to avoid any post-back. Copy the following code to your aspx page, call removeRestrictedExtent() to remove restrictedExtent and call rewireRestrictedExtent() to reset it.
var restrictedExtent, olMap;
var OnMapCreated = function(map) {
olMap = map;
restrictedExtent = map.restrictedExtent;
}
var removeRestrictedExtent = function() {
olMap.setOptions({ 'restrictedExtent': null });
}
var rewireRestrictedExtent = function() {
olMap.setOptions({ 'restrictedExtent': restrictedExtent });
}
Thanks,
Ben
366-Codes.txt (787 Bytes)