Commit Graph

41 Commits

Author SHA1 Message Date
Frederic Junod 9c52e0d6d9 Remove extra imports in jsdoc
The symbols are already imported (es6 import)
2018-09-19 14:52:58 +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
ahocevar 9eeacc585f Make proj~get simpler and faster 2018-08-31 12:19:23 +02:00
Tim Schaub 68cf960028 Re-export Projection from ol/proj for convenience 2018-08-18 14:14:10 -06:00
Tim Schaub d12ef20b12 Use Array<Foo> instead of Array.<Foo> 2018-07-25 18:32:43 -07:00
Tim Schaub d46471d763 Replace {@link https://www.example.com/} with https://www.example.com/ 2018-07-19 08:34:35 -06:00
ahocevar 64e1139230 Fix remaining type issues 2018-05-17 12:29:22 -05:00
Frederic Junod 9f3b103bbf Better variables scoping 2018-05-14 14:49:09 +02:00
Tim Schaub 5a9fad218b Remove *.jsdoc files 2018-05-07 21:53:20 -06:00
ahocevar 440d1ad3e1 Shorter module paths for default exports 2018-04-25 17:25:39 +02:00
Andreas Hocevar 95d6251dbb Get rid of olx.js and typedef.js typedefs for ol 2018-03-08 18:57:24 +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
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 54b8622114 Replace ol/Sphere with ol/sphere 2017-12-20 23:48:34 -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 6f72ffe498 Named exports from ol/proj 2017-12-14 13:08:40 +01:00
Andreas Hocevar c0c43bca84 Use named imports from extent 2017-12-13 14:05:42 +01: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 42da3f18dd Keep longitude between -180 and 180 2017-11-06 06:39:17 -07:00
Tim Schaub 92c62e5432 Function for getting great circle lengths 2017-08-10 18:05:21 -06:00
Andreas Hocevar 388e2a93cb Fix scale line for EPSG:4326 maps 2017-08-07 20:42:28 -06:00
Tim Schaub fa71593a2a Remove ol.sphere.NORMAL 2017-07-11 08:10:46 -06:00
Marc Jansen 9fc0fb5e74 Merge pull request #6916 from marcjansen/eslint-4-upgrade
Upgrade eslint to v4.0.0
2017-06-22 07:55:06 +02:00
Marc Jansen 7d6929c710 Manual adjustment of indentation 2017-06-20 10:41:03 +02:00
Marc Jansen d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
Peter Robins fb5891cd48 Improve proj.get() logic 2017-06-18 09:47:07 +00:00
Peter Robins 3b15bb80b9 ProjectionLike in proj.getPointResolution 2017-06-09 09:33:43 +00:00
Peter Robins f97f370e5b Improve docs for getPointResolution functions 2017-06-09 08:07:35 +00:00
Peter Robins 641549c9ed Remove unused var from ol.proj 2017-06-06 08:23:42 +00:00
Tim Schaub 9415899a03 Add common transforms by default 2017-03-27 10:07:00 -06:00
Guillaume Beraudo 630d9c5200 Fix proj4 type
Previous typing was confusing the compiler. It could not figure out the
difference between the proj4 property and the constructor, which lead to
errors such as:

- ol.proj.setProj4(proj4)
ERR! compile /home/gberaudo/dev/ngeo/src/proj/epsg21781.js:8: ERROR - actual parameter 1 of ol.proj.setProj4 does not match formal parameter
ERR! compile found   : function (new:proj4): ?
ERR! compile required: (null|proj4)
ERR! compile   ol.proj.setProj4(proj4);
ERR! compile                    ^^^^^

- ol.proj.proj4.get().defs('EPSG:21781', epsg21781def)
ERR! compile /home/gberaudo/dev/ngeo/src/proj/epsg21781.js:26: ERROR - Property defs never defined on proj4
ERR! compile   ol.proj.proj4.get().defs('EPSG:21781', epsg21781def);
ERR! compile                       ^^^^
2017-03-22 09:47:29 +01:00
Tim Schaub f5aea97d3b All @api annotations imply stability 2017-02-06 09:22:05 -07:00
Tim Schaub 137cdc04c8 Remove ol.DEBUG 2017-01-01 20:37:52 -07:00
Tim Schaub ef04f466cd Name modules more like their provide 2016-12-18 11:24:01 -07:00