[OpenLayers-Users] OverviewMap in non wgs84 map

Jachym Cepicky jachym.cepicky at gmail.com
Wed Jul 25 08:13:40 EDT 2007


Hi,

I would like to add OpenLayers.Control.OverviewMap() control to the map
object, however, it works wrong. For example, one can take
layer-opacity.html from the examples directory:
       

        function init(){
            var options = {
                projection: "EPSG:26912",
                units: 'm',
                maxExtent: new OpenLayers.Bounds(455402, 4967657,
473295, 4984095),
                maxResolution: 'auto',
                maxZoomLevel: 8
            };
            map = new OpenLayers.Map('map', options);
            var drg = new OpenLayers.Layer.WMS("Topo Maps",
                "http://terraservice.net/ogcmap.ashx",
                {layers: "DRG"});
            map.addLayers([drg]);
            map.addControl(new OpenLayers.Control.LayerSwitcher());

	     // vvvvvvvvvvvvvvvvvvvvv
            map.addControl(new OpenLayers.Control.OverviewMap());
	     // ^^^^^^^^^^^^^^^^^^^^^

            map.setCenter(new OpenLayers.LonLat(464348.5,4975876), 1);
        }


The OverviewMap is zoomed in the original map, instead of being overview
for it.

Any hint, how to initialize OpenLayers.Control.OverView properly?

Thanks

Jachym
-- 
Jachym Cepicky
e-mail: jachym.cepicky at gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070725/f140eb6d/attachment.bin


More information about the Users mailing list