Add rotation to WebGL tile layer renderer

This commit is contained in:
Tom Payne
2012-07-29 16:58:40 +02:00
parent 9f3c02757d
commit 8179cf0b69
2 changed files with 35 additions and 5 deletions
+16
View File
@@ -14,6 +14,7 @@ goog.require('goog.dom.TagName');
goog.require('goog.events');
goog.require('goog.events.Event');
goog.require('goog.events.EventType');
goog.require('goog.functions');
goog.require('goog.style');
goog.require('goog.webgl');
goog.require('ol.Layer');
@@ -236,6 +237,12 @@ ol.webgl.Map = function(target, opt_values) {
goog.inherits(ol.webgl.Map, ol.Map);
/**
* @inheritDoc
*/
ol.webgl.Map.prototype.canRotate = goog.functions.TRUE;
/**
* @inheritDoc
*/
@@ -427,6 +434,15 @@ ol.webgl.Map.prototype.handleResolutionChanged = function() {
};
/**
* @inheritDoc
*/
ol.webgl.Map.prototype.handleRotationChanged = function() {
goog.base(this, 'handleRotationChanged');
this.render();
};
/**
* @inheritDoc
*/