[Trac] [OpenLayers] #364: WMS untiled does not work anymore?

OpenLayers trac at openlayers.org
Fri Oct 20 15:47:06 EDT 2006


#364: WMS untiled does not work anymore?
-------------------------+--------------------------------------------------
  Reporter:  openlayers  |       Owner:             
      Type:  feature     |      Status:  new        
  Priority:  critical    |   Milestone:  2.2 Release
 Component:  general     |     Version:             
Resolution:              |    Keywords:             
-------------------------+--------------------------------------------------
Comment (by openlayers):

 Chris's reply on the e-mail list:

 To obtain the behavior of 2.1 in 2.2RC1, you must pass an option of
  'ratio': 1

 to the WMS Untiled constructor. This was to correct bad behavior on the
 part of the Untiled layer, where the slightest, 1 pixel movement would
 cause the entire map to reload, a significant user interaction problem.

 The 'ratio' number can be any factor, and will be the amount the WMS
 Untiled layer should scale by. This example will adjust one of your
 layers to use this option correctly:

 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'},
     {'ratio':1}); // <- your change

 This is also a bug fix for users who have large screens, since now it's
 possible for them to adjust their map images to have a relative size to
 the map which is smaller than that maximum.

 The default behavior was seen as the best choice for user interaction in
 the standard case.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/364>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list