<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Steve, <br>
<br>
Thanks so much for you replies. I would like to try to set the
visibility scale threshold. Any advice how to do this would be
great. Below is my init function where I do set the maxExtent.
But I am guessing that by visibility scale threshold you mean
setting predefined scaled. I am not really show how best to
determine the predefined scales. My map is in EPSG 4326.<br>
<br>
<i>function init() {<br>
<br>
//Data stored as left, bottom, right, top floats.<br>
bounds = new OpenLayers.Bounds();<br>
bounds.extend(new
OpenLayers.LonLat(-131.30859375,23.745610382199022));<br>
bounds.extend(new
OpenLayers.LonLat(-58.18359375,48.50874245880332));<br>
bounds.toBBOX(); <br>
<br>
map = new OpenLayers.Map('map', {<br>
controls: [<br>
new OpenLayers.Control.Navigation(),<br>
new OpenLayers.Control.Permalink(),<br>
new OpenLayers.Control.ScaleLine(),<br>
new OpenLayers.Control.Permalink('permalink'),<br>
new OpenLayers.Control.PanPanel(),<br>
new OpenLayers.Control.MousePosition(),<br>
new OpenLayers.Control.OverviewMap(),<br>
new OpenLayers.Control.KeyboardDefaults()<br>
],<br>
numZoomLevels: 16,<br>
maxExtent: bounds<br>
});<br>
<br>
map.addControl( new OpenLayers.Control.PanZoomBar(), new
OpenLayers.Pixel(800,0)); <br>
<br>
var streetMap = new OpenLayers.Layer.ArcGIS93Rest(<br>
'ESRI Streets', <br>
'<a class="moz-txt-link-freetext" href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/export?f=image">http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/export?f=image</a>',
<br>
{layers: 'show:0'},<br>
{<br>
buffer: 2<br>
}<br>
); <br>
<br>
var stateMap = new OpenLayers.Layer.WMS(<br>
'States', <br>
'<a class="moz-txt-link-freetext" href="http://linuxserver/html/vlayers">http://linuxserver/html/vlayers</a>', <br>
{layers: 'states', transparent: true},<br>
{<br>
isBaseLayer: false, <br>
transitionEffect: 'resize',<br>
buffer: 2<br>
}<br>
);<br>
<br>
var </i><i>rasterlayer</i><i>= new OpenLayers.Layer.WMS(<br>
'rasterlayer', <br>
'<a class="moz-txt-link-freetext" href="http://linuxserver/html/ews">http://linuxserver/html/ews</a>', <br>
{layers: 'layerofinterest', transparent: true},<br>
{<br>
isBaseLayer: false, <br>
transitionEffect: 'resize',<br>
buffer: 0 <br>
}<br>
); <br>
<br>
map.addLayers([streetMap, stateMap, fcavLayer]);<br>
map.setCenter(new OpenLayers.LonLat(-98.0859375,
39.095962936305476), 5);<br>
<br>
info = new OpenLayers.Control.WMSGetFeatureInfo({<br>
url:
'<a class="moz-txt-link-freetext" href="http://rain.nemac.org/~derek/fswms/html/vlayers">http://rain.nemac.org/~derek/fswms/html/vlayers</a>', <br>
title: 'Identify features by clicking',<br>
queryVisible: true,<br>
eventListeners: {<br>
getfeatureinfo: function(event) {<br>
map.addPopup(new
OpenLayers.Popup.FramedCloud(<br>
"Feature Info:", <br>
map.getLonLatFromPixel(event.xy),<br>
null,<br>
event.text,<br>
null,<br>
true<br>
));<br>
}<br>
}<br>
});<br>
info.infoFormat = 'application/vnd.ogc.gml';<br>
map.addControl(info);<br>
info.activate();<br>
}//END OPENLAYERS
INIT--------------------------------------------------------------<br>
</i>
<br>
</div>
</body>
</html>