diff --git a/src/ol/events/condition.js b/src/ol/events/condition.js index 1cc33cddb8..6227f88c33 100644 --- a/src/ol/events/condition.js +++ b/src/ol/events/condition.js @@ -1,6 +1,6 @@ goog.provide('ol.events.condition'); -goog.require('ol.MapBrowserEvent.EventType'); +goog.require('ol.MapBrowserEvent'); goog.require('ol.asserts'); goog.require('ol.functions'); goog.require('ol.has'); diff --git a/src/ol/geom/flat/interpolate.js b/src/ol/geom/flat/interpolate.js index 64c8a7ee79..444953000e 100644 --- a/src/ol/geom/flat/interpolate.js +++ b/src/ol/geom/flat/interpolate.js @@ -80,7 +80,7 @@ ol.geom.flat.interpolate.lineString = function(flatCoordinates, offset, end, str * @param {boolean} extrapolate Extrapolate. * @return {ol.Coordinate} Coordinate. */ -ol.geom.flat.lineStringCoordinateAtM = function(flatCoordinates, offset, end, stride, m, extrapolate) { +ol.geom.flat.interpolate.lineStringCoordinateAtM = function(flatCoordinates, offset, end, stride, m, extrapolate) { if (end == offset) { return null; } @@ -147,10 +147,10 @@ ol.geom.flat.lineStringCoordinateAtM = function(flatCoordinates, offset, end, st * @param {boolean} interpolate Interpolate. * @return {ol.Coordinate} Coordinate. */ -ol.geom.flat.lineStringsCoordinateAtM = function( +ol.geom.flat.interpolate.lineStringsCoordinateAtM = function( flatCoordinates, offset, ends, stride, m, extrapolate, interpolate) { if (interpolate) { - return ol.geom.flat.lineStringCoordinateAtM( + return ol.geom.flat.interpolate.lineStringCoordinateAtM( flatCoordinates, offset, ends[ends.length - 1], stride, m, extrapolate); } var coordinate; @@ -181,12 +181,12 @@ ol.geom.flat.lineStringsCoordinateAtM = function( if (m < flatCoordinates[offset + stride - 1]) { return null; } else if (m <= flatCoordinates[end - 1]) { - return ol.geom.flat.lineStringCoordinateAtM( + return ol.geom.flat.interpolate.lineStringCoordinateAtM( flatCoordinates, offset, end, stride, m, false); } offset = end; } ol.DEBUG && console.assert(false, - 'ol.geom.flat.lineStringsCoordinateAtM should have returned'); + 'ol.geom.flat.interpolate.lineStringsCoordinateAtM should have returned'); return null; }; diff --git a/src/ol/geom/linestring.js b/src/ol/geom/linestring.js index 988b6e2db2..cc37f9eae6 100644 --- a/src/ol/geom/linestring.js +++ b/src/ol/geom/linestring.js @@ -147,7 +147,7 @@ ol.geom.LineString.prototype.getCoordinateAtM = function(m, opt_extrapolate) { return null; } var extrapolate = opt_extrapolate !== undefined ? opt_extrapolate : false; - return ol.geom.flat.lineStringCoordinateAtM(this.flatCoordinates, 0, + return ol.geom.flat.interpolate.lineStringCoordinateAtM(this.flatCoordinates, 0, this.flatCoordinates.length, this.stride, m, extrapolate); }; diff --git a/src/ol/geom/multilinestring.js b/src/ol/geom/multilinestring.js index 28e976379b..61a287b519 100644 --- a/src/ol/geom/multilinestring.js +++ b/src/ol/geom/multilinestring.js @@ -134,7 +134,7 @@ ol.geom.MultiLineString.prototype.getCoordinateAtM = function(m, opt_extrapolate } var extrapolate = opt_extrapolate !== undefined ? opt_extrapolate : false; var interpolate = opt_interpolate !== undefined ? opt_interpolate : false; - return ol.geom.flat.lineStringsCoordinateAtM(this.flatCoordinates, 0, + return ol.geom.flat.interpolate.lineStringsCoordinateAtM(this.flatCoordinates, 0, this.ends_, this.stride, m, extrapolate, interpolate); }; diff --git a/src/ol/interaction/doubleclickzoom.js b/src/ol/interaction/doubleclickzoom.js index 8412f22bd0..afaa39bc41 100644 --- a/src/ol/interaction/doubleclickzoom.js +++ b/src/ol/interaction/doubleclickzoom.js @@ -1,7 +1,7 @@ goog.provide('ol.interaction.DoubleClickZoom'); goog.require('ol'); -goog.require('ol.MapBrowserEvent.EventType'); +goog.require('ol.MapBrowserEvent'); goog.require('ol.interaction.Interaction'); diff --git a/src/ol/interaction/draw.js b/src/ol/interaction/draw.js index 619328cc80..49771402c1 100644 --- a/src/ol/interaction/draw.js +++ b/src/ol/interaction/draw.js @@ -5,7 +5,7 @@ goog.require('ol.events'); goog.require('ol.extent'); goog.require('ol.events.Event'); goog.require('ol.Feature'); -goog.require('ol.MapBrowserEvent.EventType'); +goog.require('ol.MapBrowserEvent'); goog.require('ol.Object'); goog.require('ol.coordinate'); goog.require('ol.functions'); diff --git a/src/ol/interaction/extent.js b/src/ol/interaction/extent.js index 40b5b48b51..9bf52d4852 100644 --- a/src/ol/interaction/extent.js +++ b/src/ol/interaction/extent.js @@ -2,7 +2,7 @@ goog.provide('ol.interaction.Extent'); goog.require('ol'); goog.require('ol.Feature'); -goog.require('ol.MapBrowserEvent.EventType'); +goog.require('ol.MapBrowserEvent'); goog.require('ol.MapBrowserPointerEvent'); goog.require('ol.coordinate'); goog.require('ol.events.Event'); diff --git a/src/ol/interaction/modify.js b/src/ol/interaction/modify.js index 2dff8c540f..ddeb623c5a 100644 --- a/src/ol/interaction/modify.js +++ b/src/ol/interaction/modify.js @@ -3,7 +3,7 @@ goog.provide('ol.interaction.Modify'); goog.require('ol'); goog.require('ol.Collection'); goog.require('ol.Feature'); -goog.require('ol.MapBrowserEvent.EventType'); +goog.require('ol.MapBrowserEvent'); goog.require('ol.MapBrowserPointerEvent'); goog.require('ol.View'); goog.require('ol.array'); diff --git a/src/ol/interaction/pointer.js b/src/ol/interaction/pointer.js index cf7bb1ee03..14d81c4683 100644 --- a/src/ol/interaction/pointer.js +++ b/src/ol/interaction/pointer.js @@ -2,7 +2,7 @@ goog.provide('ol.interaction.Pointer'); goog.require('ol'); goog.require('ol.functions'); -goog.require('ol.MapBrowserEvent.EventType'); +goog.require('ol.MapBrowserEvent'); goog.require('ol.MapBrowserPointerEvent'); goog.require('ol.interaction.Interaction'); goog.require('ol.obj'); diff --git a/src/ol/map.js b/src/ol/map.js index c8005378c8..8f33081a23 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -7,7 +7,6 @@ goog.provide('ol.Map'); goog.require('ol'); goog.require('ol.Collection'); goog.require('ol.MapBrowserEvent'); -goog.require('ol.MapBrowserEvent.EventType'); goog.require('ol.MapBrowserEventHandler'); goog.require('ol.MapEvent'); goog.require('ol.Object'); diff --git a/src/ol/pointer/pointereventhandler.js b/src/ol/pointer/pointereventhandler.js index 8a6d6b5031..607f30009d 100644 --- a/src/ol/pointer/pointereventhandler.js +++ b/src/ol/pointer/pointereventhandler.js @@ -205,9 +205,9 @@ ol.pointer.PointerEventHandler.prototype.removeEvents_ = function(events) { */ ol.pointer.PointerEventHandler.prototype.cloneEvent = function(event, inEvent) { var eventCopy = {}, p; - for (var i = 0, ii = ol.pointer.CLONE_PROPS.length; i < ii; i++) { - p = ol.pointer.CLONE_PROPS[i][0]; - eventCopy[p] = event[p] || inEvent[p] || ol.pointer.CLONE_PROPS[i][1]; + for (var i = 0, ii = ol.pointer.PointerEventHandler.CLONE_PROPS.length; i < ii; i++) { + p = ol.pointer.PointerEventHandler.CLONE_PROPS[i][0]; + eventCopy[p] = event[p] || inEvent[p] || ol.pointer.PointerEventHandler.CLONE_PROPS[i][1]; } return eventCopy; @@ -407,7 +407,7 @@ ol.pointer.PointerEventHandler.prototype.disposeInternal = function() { * Properties to copy when cloning an event, with default values. * @type {Array.} */ -ol.pointer.CLONE_PROPS = [ +ol.pointer.PointerEventHandler.CLONE_PROPS = [ // MouseEvent ['bubbles', false], ['cancelable', false],