[OpenLayers-Users] fractionalZoom : bug with worldwind layers ?

Jean Pommier (IGE) jean.pommier at ige.fr
Mon Feb 4 14:46:23 EST 2008


Hi,

Looks like fractionalZoom does not like worldwind layers...
When fractionalZoom is set to true, i've got a pb with worldwind layers.
When zooming, worldwind layers' tiles show in pink, as if it couldn't find
any. Even, apparently, at normal, integer levels of zoom.
You can easily experiment it with this slightly modified version of the
worldwind example :
    <script type="text/javascript">
        var map, ol_wms, ww, ww2;
        function init(){
            map = new OpenLayers.Map('map', {'maxResolution': .28125,
tileSize: new OpenLayers.Size(512, 512),  controls: []});

            ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
            "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );

            ww = new OpenLayers.Layer.WorldWind( "Bathy",
            "http://worldwind25.arc.nasa.gov/tile/tile.aspx?", 36, 4,
            {T:"bmng.topo.bathy.200406"});
            ww2 = new OpenLayers.Layer.WorldWind( "LANDSAT",
                "http://worldwind25.arc.nasa.gov/tile/tile.aspx", 2.25, 4,
                {T:"105"});



            map.addLayers([ol_wms, ww, ww2]);
            map.addControl(new OpenLayers.Control.LayerSwitcher());
                       map.addControl(new OpenLayers.Control.PanZoomBar());
            map.addControl(new OpenLayers.Control.MouseToolbar());

            map.setCenter(new OpenLayers.LonLat(-71.4, 42.3), 6);
            map.fractionalZoom = true;
        }
    </script>

Jean

-- 
Information Géographique et Environnement
39 chemin Canto Laouzeto
31100 Toulouse
France

Port  +33 6 09 23 21 36
Fax   +33 5 61 86 09 23
Mail : jean.pommier at ige.fr
Site web : www.ige.fr
Suivez de près l'actualité d'IGE grâce à notre fil RSS :
http://www.ige.fr/actualites/rss.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080204/634723b1/attachment.html


More information about the Users mailing list