Oh thanks a lot Ivan. I put 2.0 ratio earlier and it fixed it. I just didn't understand why.
By jumping I meant the overlay layer shifts for a split second to a different spot before adjusting to the correct spot. Ivan Grcic-2 wrote: > > Hi, you should put ratio in untiled layer to some bigger value, at > least 1.4 or so. > > And what excalty does it mean 'jumping' ? :) > > On Fri, Aug 7, 2009 at 12:31 AM, tommy408<[email protected]> wrote: >> >> My overlay layer keeps jumping around when I pan the map. It only does >> it on >> Firefox. I've tried 2.6, 2.7 and 2.8. All of them do it. Anyone know >> how >> I can fix it? It's probably somewhere in Image.js >> >> >> base_layer = new OpenLayers.Layer.WMS( >> "Geoserver layers - Tiled", >> "http://localhost:8080/geoserver/wms", >> { >> height: '479', >> width: '800', >> layers: 'topp:custom', >> styles: '', >> srs: 'EPSG:4326', >> format: format, >> tiled: 'true', >> tilesOrigin : "0,0" >> }, >> {transitionEffect: 'resize'} >> ); >> >> >> overlay_layer = new OpenLayers.Layer.WMS( >> "Geoserver layers - Untiled", >> "http://localhost:8080/geoserver/wms", >> { >> height: '479', >> width: '800', >> layers: 'topp:points', >> styles: '', >> srs: 'EPSG:4326', >> format: format, >> transparent: "true", >> tilesOrigin : "0,0" >> }, >> {singleTile: true, ratio: 1,transitionEffect: >> 'resize'} >> ); >> >> map.addLayers([untiled,tiled]); >> >> -- >> View this message in context: >> http://n2.nabble.com/Overlay-layer-jump-durring-pan-tp3401129p3401129.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> _______________________________________________ >> Users mailing list >> [email protected] >> http://openlayers.org/mailman/listinfo/users >> > > > > -- > Ivan Grcic > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://n2.nabble.com/Overlay-layer-jump-durring-pan-tp3401129p3403584.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
