Rename ol.render.EventType to ol.render.Event.Type

This commit is contained in:
Frederic Junod
2016-10-13 12:02:51 +02:00
parent 5a3794752a
commit ed677cec4e
12 changed files with 51 additions and 55 deletions

View File

@@ -7,7 +7,7 @@ goog.require('ol.geom.LineString');
goog.require('ol.geom.flat.geodesic');
goog.require('ol.math');
goog.require('ol.proj');
goog.require('ol.render.EventType');
goog.require('ol.render.Event');
goog.require('ol.style.Stroke');
@@ -519,12 +519,12 @@ ol.Graticule.prototype.updateProjectionInfo_ = function(projection) {
*/
ol.Graticule.prototype.setMap = function(map) {
if (this.map_) {
this.map_.un(ol.render.EventType.POSTCOMPOSE,
this.map_.un(ol.render.Event.Type.POSTCOMPOSE,
this.handlePostCompose_, this);
this.map_.render();
}
if (map) {
map.on(ol.render.EventType.POSTCOMPOSE,
map.on(ol.render.Event.Type.POSTCOMPOSE,
this.handlePostCompose_, this);
map.render();
}