Commit Graph

12856 Commits

Author SHA1 Message Date
Niels Meijer d395b54605 Apply projection.getMetersPerUnit() to calculated resolution 2020-04-28 21:43:59 +02:00
Peter Mulholland 58ba114cb7 Fix whitespace formatting 2020-04-23 17:01:22 -04:00
Peter Mulholland 6008449e07 Add undefined check for navigator.userAgent 2020-04-23 16:08:48 -04:00
wussup 7e1305eab2 Update MouseWheelZoom.js 2020-04-20 16:01:51 +02:00
wussup b6fc2bf2fe Update MouseWheelZoom.js 2020-04-20 15:58:42 +02:00
wussup 020b387649 Update MouseWheelZoom.js 2020-04-20 15:56:05 +02:00
wussup ce7be53970 Update MouseWheelZoom.js 2020-04-20 15:51:27 +02:00
wussup aca8e0880c Update MouseWheelZoom.js 2020-04-20 15:39:36 +02:00
wussup fc4ec899ca Add constrainResolution option
Sometimes we may have the functionality to set scale/resolution provided by a user and it can be any number (so constrainResolution in View class is not useful), but we would like to have constrainResolution in mouse wheel zoom event.
2020-04-20 15:36:19 +02:00
Andreas Hocevar 2760b0dafb Merge pull request #10936 from ahocevar/css-optional
Set pointerEvents style programmatically instead of relying on ol.css
2020-04-18 17:31:36 +02:00
Andreas Hocevar c020389551 Merge pull request #10941 from ahocevar/prevent-scroll-on-drag
Always prevent default after handleDragEvent
2020-04-18 17:31:00 +02:00
Andreas Hocevar 51194c69eb Always prevent default after handleDragEvent 2020-04-17 22:47:09 +02:00
Andreas Hocevar c2f4443df8 Merge pull request #10939 from ahocevar/event-type
Losen listener type
2020-04-17 14:46:57 +02:00
Andreas Hocevar 9b1f8fa1d1 Losen listener type 2020-04-17 11:28:33 +02:00
Edward Nash b543e4dedd Correct notation for optional argument 2020-04-17 10:54:44 +02:00
Edward Nash 17a8017e1e Fix calling Overlay.panIntoView with no options
* API-doc said undefined is OK, code assumed an object
2020-04-17 07:26:28 +02:00
Andreas Hocevar 7f6258dd0d Set pointerEvents style programmatically instead of relying on ol.css 2020-04-16 17:34:40 +02:00
Andreas Hocevar fee9340e24 Remove lint 2020-04-15 22:44:05 +02:00
Andreas Hocevar 29ce0bb223 Fix private scope issues in source/UrlTile and subclasses 2020-04-15 10:53:26 +02:00
Andreas Hocevar 793ccbd411 Properly export enum 2020-04-15 10:53:26 +02:00
Andreas Hocevar bcc94baf22 Fix layer renderer scope issues 2020-04-15 10:53:26 +02:00
Andreas Hocevar 6426cd10dc Fix render/Feature scope issue 2020-04-15 10:53:25 +02:00
Andreas Hocevar b0393a098a Fix WebGLPoints layer scope issue 2020-04-15 10:53:25 +02:00
Andreas Hocevar 8ba051add3 Fix private scope issues in ol/interaction/* 2020-04-15 10:53:25 +02:00
Andreas Hocevar e14e41bcfb Remove private and protected scope from GML methods and members 2020-04-15 10:53:25 +02:00
Andreas Hocevar a2ae18d89a Fix private scope type issues in format/KML 2020-04-15 10:53:24 +02:00
Andreas Hocevar f4d64700ef Fix private scope type issues in controls 2020-04-15 10:53:24 +02:00
Andreas Hocevar b0f20d6bd6 Use imports for enum types 2020-04-15 10:53:23 +02:00
Frédéric Junod 4bd191755f Merge pull request #10902 from fredj/readFromDocument
Move readFromDocument implementation to the base class
2020-04-09 10:20:51 +02:00
Andreas Hocevar cb8fb147ec Do not scroll page during feature translation 2020-04-07 08:53:54 +02:00
Frederic Junod 484f45fc1b Move readFromDocument implementation to the base class
All the child classes have the same code; move to the base class
2020-04-07 07:26:38 +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
Andreas Hocevar 4330697ed2 Fix focus condition 2020-04-06 11:57:10 +02:00
Andreas Hocevar 4a5e8528f9 Merge pull request #10878 from ahocevar/fix-freehand
Avoid page scrolling when freehand drawing on mobile
2020-04-05 22:30:54 +02:00
Andreas Hocevar 7dd6d72093 Avoid page scrolling when freehand drawing on mobile 2020-04-05 22:02:19 +02:00
Andreas Hocevar 79ccef7bf6 Do not append hit canvas to document body 2020-04-05 09:55:09 +02:00
mike-000 a1dd9cacf7 fix return type 2020-04-04 14:00:20 +01:00
Frédéric Junod d8cbda18a7 Merge pull request #10840 from fredj/remove_inheritDoc
Remove inherit doc
2020-04-04 14:06:43 +02:00
Andreas Hocevar 77763991dc Merge pull request #10537 from mike-000/patch-3
Correct resolution used for scale bar and add dpi option
2020-04-04 09:53:54 +02:00
Andreas Hocevar 58b92aca6f Merge pull request #10463 from pjsg/fix_triangulation
Fix issue with reprojection and double drawing pixels.
2020-04-04 09:44:28 +02:00
philip 4e81cf02ee Remove the unused import 2020-04-03 21:58:51 +00:00
philip 665a8275f6 It appears that Safari and Chrome behave differently when doing a drawImage
with coordinates that are outside the source. Chrome appears to draw the
piece of the image that is within the area specified on the drawImage and within
the source. Safari bails and draws nothing if (I think) any of the corners are outside
the source.
2020-04-03 21:54:42 +00:00
mike-000 fb84426411 use constant for default dpi 2020-04-03 17:17:11 +01:00
mike-000 6aa953b571 base minWidth on default dpi & remove setMinWidth 2020-04-03 17:11:25 +01:00
Andreas Hocevar b80e3a3a41 Merge pull request #10429 from mike-000/patch-4
Option to disable image smoothing for Tile layer sources (including reprojected sources)
2020-04-03 15:41:51 +02:00
Olivier Guyot 22c02e7f35 Merge pull request #10865 from jahow/view-animate-updatesize-fix
View / avoid solving constraints related to map size during animation
2020-04-03 13:55:54 +02:00
Frederic Junod dda7342ea7 Remove all inheritDoc tags from src/ol/renderer 2020-04-03 09:08:09 +02:00
Frederic Junod 9e862c1111 Remove all inheritDoc tags from src/ol/ 2020-04-03 08:20:49 +02:00
Frederic Junod d15ec1c12c Remove all inheritDoc tags from disposeInternal functions 2020-04-03 08:10:41 +02:00
Frederic Junod a695ce8616 Remove all inheritDoc tags from src/ol/render 2020-04-03 07:56:58 +02:00