Removing unused image load error handling code. r=fredj (closes #3420)
This commit is contained in:
@@ -238,20 +238,6 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
*/
|
||||
panRatio: 1.5,
|
||||
|
||||
/**
|
||||
* Property: viewRequestID
|
||||
* {String} Used to store a unique identifier that changes when the map
|
||||
* view changes. viewRequestID should be used when adding data
|
||||
* asynchronously to the map: viewRequestID is incremented when
|
||||
* you initiate your request (right now during changing of
|
||||
* baselayers and changing of zooms). It is stored here in the
|
||||
* map and also in the data that will be coming back
|
||||
* asynchronously. Before displaying this data on request
|
||||
* completion, we check that the viewRequestID of the data is
|
||||
* still the same as that of the map. Fix for #480
|
||||
*/
|
||||
viewRequestID: 0,
|
||||
|
||||
// Options
|
||||
|
||||
/**
|
||||
@@ -1174,10 +1160,6 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
// set new baselayer
|
||||
this.baseLayer = newBaseLayer;
|
||||
|
||||
// Increment viewRequestID since the baseLayer is
|
||||
// changing. This is used by tiles to check if they should
|
||||
// draw themselves.
|
||||
this.viewRequestID++;
|
||||
if(!this.allOverlays || this.baseLayer.visibility) {
|
||||
this.baseLayer.setVisibility(true);
|
||||
}
|
||||
@@ -1819,8 +1801,6 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
if (zoomChanged) {
|
||||
this.zoom = zoom;
|
||||
this.resolution = res;
|
||||
// zoom level has changed, increment viewRequestID.
|
||||
this.viewRequestID++;
|
||||
}
|
||||
|
||||
var bounds = this.getExtent();
|
||||
|
||||
Reference in New Issue
Block a user