No subject
Tue Mar 27 15:02:52 EDT 2007
this been fixed in 2.4 or is there any other solution to this problem ?
I have tried changing the Google.js to have maxZoomLevel:20 and added the
appropriate resolutions. This means I can zoom in a couple of extra zoom
levels but as this happens the WMS overlays get disabled, this still doesnt
solve the problem with having a minZoomLevel, if that is set the overlays
get disabled earlier.
my code is similar to the following:-
var options = {
controls: [],
numZoomLevels: 20,
minZoomLevel: 5
};
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
map = new OpenLayers.Map('map', options);
var baseOptions = {isBaseLayer: true};
googleMap = new OpenLayers.Layer.Google
(\"GoogleMap\",
{type: G_NORMAL_MAP}
);
googleMap.addOptions(baseOptions);
googleHyb = new OpenLayers.Layer.Google
(\"GoogleHyb\",
{type: G_HYBRID_MAP}
);
googleHyb.addOptions(baseOptions);
var layerOptions = {isBaseLayer: false, visibility:
false};
wms_nz = new OpenLayers.Layer.WMS(\"WMS NZ Coast\",
\"
http://localhost:8080/geoserver/wms?service=wms\",
{layers: 'bimaris:nzcoast',
format: 'image/png', transparent: true}
);
wms_nz.addOptions(layerOptions);
------=_Part_22358_7997664.1178159058533
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello,<br>I have OpenLayers 2.3 stable installed and have a standard google map displayed with some WMS overlays. What I have found is that when minZoomLevel is set the WMS overlays become disabled as I zoom in.<br><br>From reading other posts I take it this is a bug, can someone tell me has this been fixed in
2.4 or is there any other solution to this problem ?<br><br>I have tried changing the Google.js to have maxZoomLevel:20 and added the appropriate resolutions. This means I can zoom in a couple of extra zoom levels but as this happens the WMS overlays get disabled, this still doesnt solve the problem with having a minZoomLevel, if that is set the overlays get disabled earlier.
<br><br>my code is similar to the following:-<br><br> var options = {<br> controls: [],<br> numZoomLevels: 20,<br> minZoomLevel: 5
<br> };<br> OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;<br> map = new OpenLayers.Map('map', options);<br><br> var baseOptions = {isBaseLayer: true};
<br> googleMap = new OpenLayers.Layer.Google(\"GoogleMap\",<br> {type: G_NORMAL_MAP}<br> );<br>
googleMap.addOptions(baseOptions);<br><br> googleHyb = new OpenLayers.Layer.Google(\"GoogleHyb\",<br> {type: G_HYBRID_MAP}<br> );
<br> googleHyb.addOptions(baseOptions);<br><br> var layerOptions = {isBaseLayer: false, visibility: false};<br> wms_nz = new OpenLayers.Layer.WMS(\"WMS NZ Coast\",
<br> \"<a href="http://localhost:8080/geoserver/wms?service=wms\">http://localhost:8080/geoserver/wms?service=wms\</a>",<br> {layers: 'bimaris:nzcoast', format: 'image/png', transparent: true}
<br> );<br> wms_nz.addOptions(layerOptions);<br><br>
------=_Part_22358_7997664.1178159058533--
More information about the Users
mailing list