[OpenLayers-Users] overview map troubles - solved

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Jan 2 05:03:06 EST 2007


Hi list,

just wanted to report back that all the javascript errors I was getting were
a result of an improper way of giving options to the constructor of the
overviewmap.

I now got things working using:

function overviewmapinit() {
  var overviewlayer = new OpenLayers.Layer.WMS.Untiled( "Grenzen",
"http://intranet.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?",
{layers: 'AAA207', 'format':'image/jpeg', 'transparent':'true'},
{'numZoomLevels': 7, 'ratio':1, isBaseLayer: true} );
  var options = {projection: "EPSG:28992", units: 'm', maxExtent: new
OpenLayers.Bounds(-262422.857143, 297647, 552422.857143, 868039)};
  map.addControl(new OpenLayers.Control.OverviewMap({layers:
[overviewlayer], mapOptions: options}));
}

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl








More information about the Users mailing list