[OpenLayers-Users] problem with ol.control.OverviewMap in ol v3.11

Dietmar Stolz dietmar.stolz at freenet.de
Sun Nov 22 08:43:47 PST 2015


Hi list,

I have a problem with ol.control.OverviewMap in the new OL version.
Since ol 3.10 it's posible to creat an OverviewMap in a different 
projection than EPSG:3857.
My code:

/   new ol.control.OverviewMap({tipLabel: 'overview',//
//   className: 'ol-overviewmap ol-custom-overviewmap',//
//    layers:  [//
//      new ol.layer.Image({//
//      source: new ol.source.ImageWMS({//
//         url: "http://geodaten.metropoleruhr.de/spw/spw_web?",//
//        params: {'LAYERS': 'spw_web,grenzen',VERSION: '1.1.1'},//
//        projection: 'EPSG:31466'//
//      })//
//     })//
//    ],//
//    collapseLabel: '\u00AB',//
//    label: '\u00BB',//
//    collapsed: true//
//  }),/

in Ol v3.10.x srs and bbox be requested correctly:
/http://geodaten.metropoleruhr.de/spw/spw_web?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=spw_web&*SRS=EPSG:31466*&STYLES=&WIDTH=301&HEIGHT=226&*BBOX=2553073.181753172,5654199.856311058,2599088.272780848,5688749.393095958*/

in OL v.3.11.x srs is ok but the BBOX extent is not calculated correctly 
for this srs:
/http://geodaten.metropoleruhr.de/spw/spw_web?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=spw_web&*SRS=EPSG:31466*&STYLES=&WIDTH=342&HEIGHT=284&*BBOX=3824902.0959442877,5149153.080296487,3862448.9974250025,5180340.726397846*/

Does somebody has any idea?

Many thanks

Dietmar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20151122/1f90ac75/attachment.html>


More information about the Users mailing list