[OpenLayers-Trac] [OpenLayers] #3474: ArcGISCache resolutions get compromised by some JS frameworks.

OpenLayers trac-20090302 at openlayers.org
Tue Aug 23 16:00:22 EDT 2011

#3474: ArcGISCache resolutions get compromised by some JS frameworks.
 Reporter:  dzwarg             |       Owner:  dzwarg      
     Type:  bug                |      Status:  new         
 Priority:  major              |   Milestone:  2.12 Release
Component:  Layer.ArcGISCache  |     Version:  SVN         
 Keywords:                     |       State:              
 Using some js frameworks with the ArcGISCache layer causes trouble when
 the base javascript Array prototype is manipulated. There is a known
 external JS framework that adds 'indexOf' and 'remove' methods to the base
 javascript Array prototype. These are added during the framework's parsing
 of json components into Arrays.

 With the current ArcGISCache layer, these methods get added to the "Levels
 of Detail" object in the layerInfo, which causes problems when zooming all
 the way in.

 Attached patch demonstrates a test case where function are added to the
 layerInfo.tileInfo.lods array, and the current OpenLayers build (trunk at
 the time of this writing) will report too many levels of detail. The
 expected behavior would be to bypass any functions in the ".lods" array
 property of tileInfo.

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

More information about the Trac mailing list