Make ol.proj.METERS_PER_UNIT exportable

We need to apply the `@api` annotation to the object itself in order for it to be exportable.
This commit is contained in:
Tim Schaub
2014-07-15 15:49:48 -06:00
parent 7a26966c8d
commit 1657ed2d23

View File

@@ -42,6 +42,7 @@ ol.proj.Units = {
* @type {Object.<ol.proj.Units, number>}
* @api
*/
ol.proj.METERS_PER_UNIT = {};
ol.proj.METERS_PER_UNIT[ol.proj.Units.DEGREES] =
2 * Math.PI * ol.sphere.NORMAL.radius / 360;
ol.proj.METERS_PER_UNIT[ol.proj.Units.FEET] = 0.3048;