I am trying to use an OpenLayers.Layer.Image layer in my overview map. I have
 
       var overviewbaseoptions = {numZoomLevels: 1};
        
       var overviewbase = new OpenLayers.Layer.Image(
                'Base1',
                'Base1','overviewbase.gif',
                new 
OpenLayers.Bounds(915337.288810922,5929008.24725004,1645335.40214988,6591274.57687713),
                new OpenLayers.Size(180, 160),
                overviewbaseoptions
         );
 
        var overviewmapoptions = {
            projection: new OpenLayers.Projection("EPSG:900913"),            
            numZoomLevels: 1,
            size: new OpenLayers.Size(180, 160),
            maxExtent: new 
OpenLayers.Bounds(915337.288810922,5929008.24725004,1645335.40214988,6591274.57687713),
             
            layers: [overviewbase ],
            projection: new OpenLayers.Projection("EPSG:900913"),
            units: "m"
        };
                       
        var theOverviewMap = new OpenLayers.Control.OverviewMap({mapOptions: 
overviewmapoptions, size: ovmapsize, div: $('container_overview')});
        map.addControl(theOverviewMap);
 
(Changing the layer for my previously working overview map control to) the 
above layer makes my OL app break and I am getting this error :
 
this.extent.getHeight is not a function
error source line: return 
requestString;},CLASS_NAME:"Ope...;this.tile.destroy();this.tile=null;} 
OpenLayers.js (line 1187)
What is wrong with my code ?
 
Cheers 
Karsten 
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to