[OpenLayers-Dev] ANN: OpenLayers 2.2 release candidate 1

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Fri Oct 20 15:48:42 EDT 2006


Hey Schuyler,

I just tried the 2.2RC1, is WMS Untiled still working? I don't get any 
map anymore.

It seems OpenLayers is now requesting images larger than 2048 pixels. 
Which is over Mapserver's maximum.

Access log:
/cgi-bin/mapserv.exe?map=/lausanne/mapserver/provinces_of_holland.map&LAYERS=nl-prov&FORMAT=image/png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:28992&BBOX=-66233.766234,341396.103896,234740.25974,491396.103896&WIDTH=2472&HEIGHT=1232 
HTTP/1.1" 200 800

If I switch back to 2.1 I get:
/cgi-bin/mapserv.exe?map=/lausanne/mapserver/provinces_of_holland.map&LAYERS=nl-prov&FORMAT=image/png&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:28992&BBOX=-166382.252559727,300000,466382.252559727,600000&WIDTH=1236&HEIGHT=586 
HTTP/1.1" 200 12231

so apparently OpenLayers now requests images by default twice as big?

I have opened up a ticket, but the code did not format well in Trac, so 
I'll paste it in this e-mail as well.

http://trac.openlayers.org/ticket/364#preview

        function mapinit(){
            map = new OpenLayers.Map( $('map'), { 'projection': 'EPSG:4326', 'units':'degrees', 'maxExtent': new OpenLayers.Bounds(-180, -90, 180, 90) , 'maxResolution':'auto'});            var layer = new OpenLayers.Layer.WMS.Untiled( "WorldGen",
                "http://www2.dmsolutions.ca/cgi-bin/mswms_world?", {layers: 'WorldGen', 'format':'image/png', 'transparent':'true'} );
            layer.isBaseLayer = true;

            map.addLayers([layer]);            var layer = new OpenLayers.Layer.WMS.Untiled( "World Political",
                "http://www2.dmsolutions.ca/cgi-bin/mswms_world?", {layers: 'WorldPolitical', 'format':'image/png', 'transparent':'true'} );
            layer.isBaseLayer = false;

            map.addLayers([layer]);            var layer = new OpenLayers.Layer.WMS.Untiled( "WorldGen_Outline",
                "http://www2.dmsolutions.ca/cgi-bin/mswms_world?", {layers: 'WorldGen_Outline', 'format':'image/png', 'transparent':'true'} );
            layer.isBaseLayer = false;

            map.addLayers([layer]);            var layer = new OpenLayers.Layer.WMS.Untiled( "WorldRoads",
                "http://www2.dmsolutions.ca/cgi-bin/mswms_world?", {layers: 'WorldRoads', 'format':'image/png', 'transparent':'true'} );
            layer.isBaseLayer = false;

            map.addLayers([layer]);            var layer = new OpenLayers.Layer.WMS.Untiled( "WorldPlaces",
                "http://www2.dmsolutions.ca/cgi-bin/mswms_world?", {layers: 'WorldPlaces', 'format':'image/png', 'transparent':'true'} );
            layer.isBaseLayer = false;

            map.addLayers([layer]);            var layer = new OpenLayers.Layer.WMS.Untiled( "WorldPOI",
                "http://www2.dmsolutions.ca/cgi-bin/mswms_world?", {layers: 'WorldPOI', 'format':'image/png', 'transparent':'true'} );
            layer.isBaseLayer = false;

            map.addLayers([layer]);            map.addControl(new OpenLayers.Control.LayerSwitcher());

            map.zoomToMaxExtent();
        }

Best regards,
Bart

Schuyler Erle schreef:
> The OpenLayers Development Team is proud to announce release candidate
> 1 of OpenLayers 2.2. While the public API maintains backwards
> compatibility with previous 2.x releases, OpenLayers 2.2-rc1
> introduces a number of internal changes that are important for
> developers working inside the OpenLayers library.
>
> New Features include:
>
>   * Overview Map Control (Thanks Tim Schaub!)
>   * Mouse Position Control (Thanks Jeff Dege!)
>   * GeoRSS Atom support (Thanks Sean Gilles!)
>   * MapServer CGI Layer (Thanks Arnd Wipperman!)
>   * Support for displaying WMS on top of Google Maps 
>
> Other changes include:
>
>   * Refactoring the use of Prototype.js. Rather than using
>     Prototype.js, OpenLayers has integrated the important pieces of
>     the Prototype framework into OpenLayers, and removed offending
>     functions like Object.extend(). This means that there should no
>     longer be conflicts between OpenLayers and different versions of
>     Prototype, or any other Javascript framework.
>
>   * Adding support for a 'lite' build of OpenLayers via 'build
>     profiles', as described at http://trac.openlayers.org/wiki/Profiles
>
>   * Addition of a framework for customizing OpenLayers via CSS, e.g.
>     Popups. (Not all aspects of the interface are customizable yet,
>     e.g. pan/zoom chrome.)
>
>   * A number of other bug fixes, as described in the 2.2 release notes,
>     at http://trac.openlayers.org/wiki/ReleaseNotes2.2 
>
> To test 2.2-rc1 in your applications, include the following tag in
> your OpenLayers-powered page:
>
>   <script src="http://openlayers.org/api/2.2-rc1/OpenLayers.js"></script>
>
> Bug reports can be filed in Trac, under the 2.2 version and milestone.
>
> We look forward to your feedback. Thanks very much for using
> OpenLayers!
>
> SDE
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>
>   


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl




More information about the Dev mailing list