Andreas Hocevar
49658709c7
Transform without axis order in proj4
2020-05-23 20:59:08 +02:00
Tim Schaub
054af09032
Make code prettier
...
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
ahocevar
fecb8de769
getPointResolution returns proj units
2019-02-07 12:25:37 +01:00
ahocevar
80ebb8142c
Avoid unexpected behavior when passing string coordinates
2018-12-13 19:07:12 +01:00
Frederic Junod
53c2be0c7a
Simplify import path in ol/proj/
2018-11-05 16:26:45 +01:00
Frederic Junod
ea616e7751
Don't import ourselves
2018-09-06 09:05:32 +02:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
Tim Schaub
45e0926896
Cleaned up ol/proj
2018-07-17 17:54:24 -06:00
Frederic Junod
f2d0b11d24
Move jsdoc constructor comments
2018-07-17 09:59:00 +02:00
Tim Schaub
f78d0d4cfa
Manual class transform
2018-07-16 17:09:50 -06:00
Tim Schaub
7b4a73f3b9
Automated class transform
...
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
Andreas Hocevar
7dcc720029
Improve readability
2018-06-27 11:15:49 +02:00
Frederic Junod
770407f1ba
Remove reference to setProj4 function in documentation
...
The function was removed in #7598
2018-06-27 10:35:03 +02:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
Tim Schaub
5a9fad218b
Remove *.jsdoc files
2018-05-07 21:53:20 -06:00
Tim Schaub
8e7c88d9a5
Updated type annotations
2018-05-07 15:50:56 -06:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Frederic Junod
8a4d60192f
Mark optional property with square brackets
2018-03-19 08:29:50 +01:00
Frederic Junod
218ca38f1d
Use path type instead of ol.Coordinate
2018-03-19 08:29:50 +01:00
Frederic Junod
76fb0edf0d
Use path type instead of ol.tilegrid.TileGrid
2018-03-15 14:20:49 +01:00
ahocevar
889befc8c7
Use path type instead of ol.Extent
2018-03-14 11:54:09 +01:00
Tim Schaub
a743ec3989
Module types for ol/proj
2018-03-12 08:32:09 -06:00
Tim Schaub
70ff218a8e
Move ProjectionOptions to ol/proj/Projection
2018-03-11 10:34:17 -06:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Frederic Junod
3435ac575e
Better type definition
...
Fixes the `Invalid type(s) for operator IN.` warnings from the closure compiler.
2018-03-07 16:45:46 +01:00
Tim Schaub
ef92649017
Remove static members from Units
2018-02-25 08:43:07 -07:00
Tim Schaub
9c64d29941
Named exports from ol/proj/epsg4326
2018-02-07 12:50:46 -07:00
Tim Schaub
6701d19a45
Named exports from ol/proj/epsg3857
2018-02-07 12:44:02 -07:00
Frederic Junod
1c2ce4ff1c
Named exports from ol/proj/projections
2018-01-16 15:31:36 +01:00
Frederic Junod
31e30d28b7
Named exports from ol/obj
2018-01-16 14:14:17 +01:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
aa89746c47
Rename _ol_proj_Projection_ to Projection
2018-01-11 13:33:41 -07:00
Tim Schaub
a04144c3c2
Rename _ol_proj_Units_ to Units
2018-01-10 09:35:42 -07:00
Ron Young
a11208d126
rename _ol_math_ imports
2017-12-20 19:31:00 -06:00
Andreas Hocevar
9f1ebbb852
Add and use new proj4.register function
2017-12-15 19:17:29 +01:00
Andreas Hocevar
345ce340e4
Named exports for ol/proj/transforms
2017-12-15 18:48:10 +01:00
Tim Schaub
6e6b0b08fb
Merge pull request #7578 from tschaub/undeprecated
...
Remove deprecated functionality from 4.x
2017-12-13 05:31:51 -07:00
Tim Schaub
bb48b09920
Remove ol/proj/common
2017-12-12 19:13:05 -07:00
Tim Schaub
ee5507cae8
Remove ENABLE_PROJ4JS
2017-12-12 17:26:01 -07:00
Tim Schaub
87295a74dd
Use named exports from ol/index.js
2017-12-12 12:34:23 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Tim Schaub
1cdb6a66f0
Imports cased like the filename
2017-12-12 06:53:17 -07:00
Frederic Junod
c490fd4af8
Export ol.proj.Projection#getAxisOrientation function
2017-11-13 17:19:50 +01:00
Andreas Hocevar
4b4f383043
Transform tile-pixels coordinates only once
...
This allows us to simplify the vector tile renderer significantly, because
there are no more coordinates that need special tile-pixel handling.
2017-08-28 19:32:16 +02:00
Willie Nordmann
9ee1f6df98
Removing invalid urn
2017-07-28 08:14:27 -05:00
Willie Nordmann
648cd0ca61
Missed EPSG:900913
2017-07-26 13:08:39 -05:00
Willie Nordmann
b9b70ea3ec
Changing the EPSG3857.PROJECTION array assignment and adding urn:ogc:crs:EPSG::3857 while removing a duplicate
2017-07-26 12:52:37 -05:00
Tim Schaub
aced192bcd
Merge pull request #6899 from probins/radii
...
Use number literal for sphere radius
2017-07-11 07:08:30 -06:00