[OpenLayers-Users] Profmance (continuation of an topic from august)

Gary Townsend garyt at spatialmapping.com
Thu Dec 7 12:46:04 EST 2006


Was reading through the topic posted on performance in august and we just
moved from openlayers 1.0 to 2.2  and have noticed a significant increase in
wait time. Panning isn't as big a concern for us since the portion of our
site that uses Openlayers is just a search engine to define an Area Of
Interest and then find imagery based on that AOI. We had been using untiled
imagery because of the benefits we saw interms of it presenting an
interlaced image to the user faster with which the user could actually
define an AOI before the image was done loading.

 

So when comparing our two versions of the same image search engine, the one
with OL1.0 and OL2.2 I noticed that the 2.2 is loading an image of 1500x900
in size behind the viewport. Is there anyway to reduce that? I tried the
following but to no avail.

 

function init(){

  var map = new OpenLayers.Map('map', {'maxResolution':'auto'});

 

  var ol_wms = new OpenLayers.Layer.WMS.Untiled(
"Globe","http://www.resmap.com/resmapserver/mapserv.exe?map=C:/Inetpub/Resma
pRoot/ResmapSearch.map", {layers: 'Globe', format: 'png'},{buffer:1} );

  var pb_wms = new
OpenLayers.Layer.WMS.Untiled("Borders","http://www.resmap.com/resmapserver/m
apserv.exe?map=C:/Inetpub/resmaproot/ResmapSearch.map", {layers:
'PoliticalBoundaries',format: 'gif', transparent:'true'} );

 

                  map.addLayers([ol_wms,pb_wms]);

                  map.addControl(new OpenLayers.Control.LayerSwitcher());

                  map.setCenter(new OpenLayers.LonLat(0, 0),0);

}

 

 

 

 





Gary Townsend (Systems Programmer & Developer )

Spatial Mapping Ltd.

#200 484 2nd Ave. Prince George, B.C., Canada V2L 2Z7

Phone: 250 564 1928

Fax: 250 564 0751

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlayers.org/pipermail/users/attachments/20061207/b8aa592c/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2661 bytes
Desc: not available
Url : http://openlayers.org/pipermail/users/attachments/20061207/b8aa592c/attachment.gif 


More information about the Users mailing list