Rename _ol_render_EventType_ to RenderEventType

This commit is contained in:
Frederic Junod
2017-12-18 17:23:05 +01:00
parent ef3f60e636
commit 277e470bd3
8 changed files with 22 additions and 31 deletions

View File

@@ -9,7 +9,7 @@ import Point from './geom/Point.js';
import _ol_geom_flat_geodesic_ from './geom/flat/geodesic.js';
import _ol_math_ from './math.js';
import {get as getProjection, equivalent as equivalentProjection, getTransform, transformExtent} from './proj.js';
import _ol_render_EventType_ from './render/EventType.js';
import RenderEventType from './render/EventType.js';
import _ol_style_Fill_ from './style/Fill.js';
import _ol_style_Stroke_ from './style/Stroke.js';
import _ol_style_Text_ from './style/Text.js';
@@ -723,13 +723,11 @@ Graticule.prototype.updateProjectionInfo_ = function(projection) {
*/
Graticule.prototype.setMap = function(map) {
if (this.map_) {
this.map_.un(_ol_render_EventType_.POSTCOMPOSE,
this.handlePostCompose_, this);
this.map_.un(RenderEventType.POSTCOMPOSE, this.handlePostCompose_, this);
this.map_.render();
}
if (map) {
map.on(_ol_render_EventType_.POSTCOMPOSE,
this.handlePostCompose_, this);
map.on(RenderEventType.POSTCOMPOSE, this.handlePostCompose_, this);
map.render();
}
this.map_ = map;