[OpenLayers-Users] Users Digest, Vol 4, Issue 39
Hans-Jörg Stark
h.stark at fhbb.ch
Fri Jan 26 02:40:45 EST 2007
Hi Jacopo
I had the same problems (and partially still have). My feeling is this
strongly depends on the basemap that you have set in your main map. Maybe
fiddling around with that will help...?
My code that works (though only in Firefox...) looks like this:
var ov = new OpenLayers.Control.OverviewMap({
mapOptions:{
projection: 'EPSG:21781',
maxExtent: new
OpenLayers.Bounds(606800,262500,619100,272400),
units:'m',
layers: [vec_wms.clone()],
numZoomLevels: 1,
maxResolution: "auto"
}
});
map.addControl(ov);
Hans
> Message: 5
> Date: Thu, 25 Jan 2007 16:36:00 +0100
> From: Jacopo Boari <jacopo.boari at sysgroup.it>
> Subject: [OpenLayers-Users] R: Question about OverviewMap with
> non-standardparameter
> To: "'users at openlayers.org'" <users at openlayers.org>
> Message-ID: <20070125153614.96A674E332 at kermit.sysgroup.it>
> Content-Type: text/plain; charset=iso-8859-1
>
> First of all, thank you for the answer.
>
> I'm using this code:
>
> var options = {
> projection: 'EPSG:23032',
> units: 'm',
> maxExtent: new OpenLayers.Bounds(378450.9407348507,
> 4986813.622320287, 388641.1529144824, 4995259.018027502)
> };
> var ov = new OpenLayers.Control.OverviewMap({mapOptions:options});
> map.addControl(ov);
>
> But the result is the same as the old code.
> Have you any idea?
>
> Cheers,
> Jacopo
More information about the Users
mailing list