Skip to content

Commit 1657ed2

Browse files
committed
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.
1 parent 7a26966 commit 1657ed2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ol/proj/proj.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ ol.proj.Units = {
4242
* @type {Object.<ol.proj.Units, number>}
4343
* @api
4444
*/
45+
ol.proj.METERS_PER_UNIT = {};
4546
ol.proj.METERS_PER_UNIT[ol.proj.Units.DEGREES] =
4647
2 * Math.PI * ol.sphere.NORMAL.radius / 360;
4748
ol.proj.METERS_PER_UNIT[ol.proj.Units.FEET] = 0.3048;

0 commit comments

Comments
 (0)