<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi list,<br>
<br>
<span class="hps">I have a problem</span> <span class="hps">with
ol.control.OverviewMap </span><span class="hps"><span class="hps">in
the new OL version.<br>
Since ol 3.10 it's posible to </span></span><span class="hps"><span
class="hps">creat an OverviewMap in a different projection than
EPSG:3857.<br>
My code:<br>
</span><br>
</span><i> new ol.control.OverviewMap({tipLabel: 'overview',</i><i><br>
</i><i> className: 'ol-overviewmap ol-custom-overviewmap',</i><i><br>
</i><i> layers: [</i><i><br>
</i><i> new ol.layer.Image({</i><i><br>
</i><i> source: new ol.source.ImageWMS({</i><i><br>
</i><i> url:
<a class="moz-txt-link-rfc2396E" href="http://geodaten.metropoleruhr.de/spw/spw_web?">"http://geodaten.metropoleruhr.de/spw/spw_web?"</a>,</i><i><br>
</i><i> params: {'LAYERS': 'spw_web,grenzen',VERSION:
'1.1.1'},</i><i><br>
</i><i> projection: 'EPSG:31466'</i><i><br>
</i><i> })</i><i><br>
</i><i> })</i><i><br>
</i><i> ],</i><i><br>
</i><i> collapseLabel: '\u00AB',</i><i><br>
</i><i> label: '\u00BB',</i><i><br>
</i><i> collapsed: true</i><i><br>
</i><i> }),</i><br>
<br>
in Ol v3.10.x srs and bbox <span class="hps">be requested correctly</span>:<br>
<i><a class="moz-txt-link-freetext" href="http://geodaten.metropoleruhr.de/spw/spw_web?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=spw_web&">http://geodaten.metropoleruhr.de/spw/spw_web?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=spw_web&</a><b>SRS=EPSG:31466</b>&STYLES=&WIDTH=301&HEIGHT=226&<b>BBOX=2553073.181753172,5654199.856311058,2599088.272780848,5688749.393095958</b></i><br>
<br>
in OL v.3.11.x srs is ok but the BBOX extent <span class="hps">is</span>
<span class="hps">not</span> <span class="hps">calculated correctly
for this srs</span>:<br>
<i><a class="moz-txt-link-freetext" href="http://geodaten.metropoleruhr.de/spw/spw_web?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=spw_web&">http://geodaten.metropoleruhr.de/spw/spw_web?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=spw_web&</a><b>SRS=EPSG:31466</b>&STYLES=&WIDTH=342&HEIGHT=284&<b>BBOX=3824902.0959442877,5149153.080296487,3862448.9974250025,5180340.726397846</b></i><br>
<br>
<span class="hps">Does somebody has any idea?<br>
<br>
</span>M<span class="hps">any thanks<br>
<br>
Dietmar<br>
</span>
</body>
</html>