Incorporating @elemoine's review comments
This commit is contained in:
@@ -1140,15 +1140,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: onLoadEnd
|
||||
* Sets the loading flag to false and triggers the loadend event.
|
||||
*/
|
||||
onLoadEnd: function() {
|
||||
this.loading = false;
|
||||
this.events.triggerEvent("loadend");
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: removeTileMonitoringHooks
|
||||
* This function takes a tile as input and removes the tile hooks
|
||||
|
||||
@@ -2399,7 +2399,7 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
// update the end scale, and reuse the running zoomTween
|
||||
map.zoomTween.finish = {
|
||||
scale: map.zoomTween.finish.scale * end.scale
|
||||
}
|
||||
};
|
||||
} else {
|
||||
if (!xy) {
|
||||
var size = map.getSize();
|
||||
@@ -2805,7 +2805,8 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
if (transform) {
|
||||
// Try translate3d, but only if the viewPortDiv has a transform
|
||||
// defined in a stylesheet
|
||||
var computedStyle = OpenLayers.Element.getStyle(this.viewPortDiv, OpenLayers.Util.vendorPrefix.css('transform'));
|
||||
var computedStyle = OpenLayers.Element.getStyle(this.viewPortDiv,
|
||||
OpenLayers.Util.vendorPrefix.css('transform'));
|
||||
if (!computedStyle || computedStyle !== 'none') {
|
||||
template = ['translate3d(', ',0) ', 'scale3d(', ',1)'];
|
||||
style[transform] = [template[0], '0,0', template[1]].join('');
|
||||
|
||||
Reference in New Issue
Block a user