From 9368f05d1cb9ac6a8a24ffd56238ada390d195cf Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 6 Jul 2012 13:23:43 +0200 Subject: [PATCH] Factor out ol.TransformFunction --- src/all.js | 1 + src/ol/projection.js | 7 +------ src/ol/transformfunction.js | 9 +++++++++ 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 src/ol/transformfunction.js diff --git a/src/all.js b/src/all.js index 4acf926f1f..54f9026c22 100644 --- a/src/all.js +++ b/src/all.js @@ -12,3 +12,4 @@ goog.require('ol.TileBounds'); goog.require('ol.TileCoord'); goog.require('ol.TileGrid'); goog.require('ol.TileUrl'); +goog.require('ol.TransformFunction'); diff --git a/src/ol/projection.js b/src/ol/projection.js index 177d584f22..4a9f08d7ff 100644 --- a/src/ol/projection.js +++ b/src/ol/projection.js @@ -5,12 +5,7 @@ goog.require('goog.asserts'); goog.require('goog.math.Coordinate'); goog.require('goog.object'); goog.require('ol.Extent'); - - -/** - * @typedef {function(goog.math.Coordinate): goog.math.Coordinate} - */ -ol.TransformFunction; +goog.require('ol.TransformFunction'); /** diff --git a/src/ol/transformfunction.js b/src/ol/transformfunction.js new file mode 100644 index 0000000000..2f2f2ed532 --- /dev/null +++ b/src/ol/transformfunction.js @@ -0,0 +1,9 @@ +goog.provide('ol.TransformFunction'); + +goog.require('goog.math.Coordinate'); + + +/** + * @typedef {function(goog.math.Coordinate): goog.math.Coordinate} + */ +ol.TransformFunction;