Commit Graph

60 Commits

Author SHA1 Message Date
Andreas Hocevar
c9593b0cf6 Adjust resolution for user extent 2021-09-10 02:01:46 +02:00
Tim Schaub
f798902ecd Fix JSDoc generated links 2021-06-17 21:54:07 -06:00
Simon Seyock
8facb252f1 Replace google closure syntax = with brackets around name 2021-02-03 14:06:02 +01:00
Simon Seyock
f590cb3473 Harmonize jsdoc 2021-02-02 12:14:56 +01:00
mike-000
2bb8aa0f32 Better default when no transform available
Do not use identityTransform for EPSG:4326 transform unless units are degrees
2020-12-07 17:32:08 +00:00
Andreas Hocevar
a9b3a5bcc9 Only clamp to source projection extent 2020-07-07 10:12:47 +02:00
Andreas Hocevar
04598d0641 Consider all corners for min/max x/y check 2020-06-26 19:29:51 +02:00
Andreas Hocevar
36a57ce6cc Remove redundant check 2020-06-26 19:29:36 +02:00
Andreas Hocevar
f41776cbb7 Also clamp x when transform failed 2020-06-26 17:36:17 +02:00
Andreas Hocevar
7b4b77433b Only clamp to dest extent when transform failed 2020-06-26 17:27:51 +02:00
Andreas Hocevar
39f4627b8c Improve readability and efficiency 2020-06-26 10:29:43 +02:00
Andreas Hocevar
bef4d8a494 Make proj4 transforms behave like built-in transforms 2020-06-26 00:16:52 +02:00
Andreas Hocevar
b0f20d6bd6 Use imports for enum types 2020-04-15 10:53:23 +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
mike-000
6ae6d0b835 Optional extra stops to refine extent transforms
Add optional extra stops to refine some non-parallel transforms

Refine extent transforms use by Gratucule by using 32 points (8 per side) instead of the standard corners only transform
Update Graticule class description with current limitations

Correct projection extent in Mollweide example and revise opening zoom level correspondingly
2020-02-23 19:13:06 +00:00
Frederic Junod
41b7893523 Mark properties as nullable 2019-10-01 10:47:07 +02:00
Tim Schaub
f73d0b16ec Support for a user projection 2019-09-21 11:21:05 -06:00
ahocevar
dd478167a0 Only import what's needed from projections 2019-06-04 09:14:08 +02:00
ahocevar
fecb8de769 getPointResolution returns proj units 2019-02-07 12:25:37 +01:00
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