Andreas Hocevar
c0c43bca84
Use named imports from extent
2017-12-13 14:05:42 +01:00
Tim Schaub
34c132a67e
Move MOUSEWHEELZOOM_MAXDELTA to the mouse wheel zoom interaction
2017-12-12 16:54: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
Matt Walker
90d8224a08
Fix Draw.removeLastPoint exception when no points to remove
2017-12-01 15:50:21 +00:00
Tim Schaub
b58073dd06
Allow clicks to be stopped while drawing
2017-11-29 16:58:26 -07:00
cs09g
e745c63383
clamp when resolution is defined
2017-11-28 16:51:11 +09:00
cs09g
466d63ac41
fix setMinZoom/setMaxZoom
...
when view has resolutions property, setMinZoom/setMaxZoom doesn't work.
2017-11-28 16:20:26 +09:00
Frederic Junod
c0d57ad005
Allow string to be passed as ol.interaction.Draw type
2017-11-21 09:55:54 +01:00
Frederic Junod
82da43af35
Use getAnimating and getInteracting from ol.View
2017-11-08 11:47:29 +01:00
marcosox
850aaf96f2
Add pixelTolerance to olx.interaction.ExtentOptions
2017-10-16 15:46:12 +02:00
marcosox
d40dd695cb
Pass pixel tolerance as a parameter to constructor of ol.interaction.Extent
...
This adds the pixelTolerance option parameter to the constructor of ol.interaction.Extent.
In this way the user can override the current default value of 10.
2017-10-16 15:36:42 +02:00
Trevor Blades
62461bc1d2
Enable mouse wheel in freehand draw mode
...
Previously, events weren't being propagated if the active draw
interaction had its `freehand` property set to true. This means that
you can't use your mouse wheel to zoom the map in freehand mode.
This change sets the default `pass` value to true and adds additional
logic to determine when it should be set to false (and stop event
propagation).
2017-10-03 16:22:08 -07:00
Tim Schaub
3a8c873fa1
Convert pointerId to string for object lookups
2017-09-23 09:56:04 -06:00
Tim Schaub
8a08ab6463
Correct types
2017-08-15 15:37:37 -04:00
Tim Schaub
17b6088a79
Allow drag and drop interaction to be configured with a source
2017-08-10 07:10:13 -06:00
Tim Schaub
86eacefe19
Allow modify interaction to be configured with a source
2017-08-09 13:35:25 -06:00
Andreas Hocevar
d5fd215632
Fix ol.interaction.Extent event type and documentation
2017-07-30 23:32:16 +02:00
Andreas Hocevar
b0b68983f7
Allow to configure Extent interaction with an extent
2017-07-28 13:07:18 +02: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
Frederic Junod
3e7aecd094
Handle setActive(false) on an interaction without map
2017-06-15 08:41:52 +02:00
Andreas Hocevar
9b41ea4017
Use class instead of style for Translate cursor
2017-06-12 13:30:25 +02:00
Andreas Hocevar
00c8a5845e
Disable rotation for views with enableRotation: false
2017-06-08 17:29:47 +02:00
Andreas Hocevar
959367629e
Merge pull request #6851 from ahocevar/draganddrop-active
...
Register/unregister listeners in setActive
2017-05-24 15:36:26 +02:00
Andreas Hocevar
278d3a0313
Register/unregister listeners in setActive
2017-05-24 14:51:39 +02:00
Andreas Hocevar
b6f446e909
Merge pull request #6845 from tchandelle/snap-circle
...
Snap on circles
2017-05-24 14:34:07 +02:00
Thomas Chandelle
074fdeb212
Add snapping abilities on circles
2017-05-23 14:45:03 +02:00
Chase(Seul-gi Choi)
661410a96e
add condition to check if active
...
fixes #6840
"setMap" registers listeners to dropArea, but it doesn't check whether "active" is true or false. Simply add condition to check "active".
2017-05-23 10:48:12 +09:00
Frédéric Junod
b8164df349
Merge pull request #6795 from fredj/ol.DrawGeometryFunctionType_type
...
Fix ol.DrawGeometryFunctionType coordinates argument type
2017-05-11 08:26:58 +02:00
Frederic Junod
55de3020d3
Fix ol.DrawGeometryFunctionType coordinates argument type
2017-05-10 13:36:29 +02:00
Frederic Junod
ff91974345
Add insertVertexCondition to ol.interaction.Modify options
2017-05-09 15:34:43 +02:00
Andreas Hocevar
642ed5f46e
Merge pull request #6757 from hajjimurad/master
...
Fix crashing on creation of snap-interaction, if Circle is among the features to snap to.
2017-05-02 21:05:31 +02:00
Murad Khafizov
242c55dcff
formatting fixed
2017-04-28 10:50:05 +02:00
Murad Khafizov
1f87dcc6b8
fix crashing on using undefined segmentWriter
2017-04-28 10:49:58 +02:00
Frederic Junod
dafe3a0811
Add missing goog.require
2017-04-28 08:48:46 +02:00
Frederic Junod
b1f38ea0e8
Fix spelling
2017-04-24 08:58:19 +02:00
Tim Schaub
41ebe62852
Merge pull request #6675 from tchandelle/translate-cursor
...
Reset cursor when translate interaction is removed or deactivated
2017-04-13 20:25:20 -06:00
Thomas Chandelle
5c23123b6d
Reset cursor when translate interaction is removed or deactivated
2017-04-11 09:15:02 +02:00
Frederic Junod
d97d5e5164
Update finishCoordinate in ol.interaction.Draw#removeLastPoint
...
And don't crash if the function is called but no feature is drawn
2017-04-10 12:34:49 +02:00
Frederic Junod
5e84d806d7
Add this jsdoc tag to ol.interaction.DragBox.defaultBoxEndCondition
2017-04-10 09:08:09 +02:00
Andreas Hocevar
07b8d97751
Merge pull request #6671 from kaiCu/master
...
Add constraintResolution option to MouseWheelZoom for zoom with trackpad
2017-04-10 08:47:30 +02:00
Frederic Junod
5c6c555b62
Remove ol.DRAG_BOX_HYSTERESIS_PIXELS define and add option
2017-04-07 15:31:59 +02:00
Frederic Junod
d767f8545f
Fix comment indentation
2017-04-07 15:13:42 +02:00
Kai Culemann
c1adde6a13
Add constraintResolution option to MouseWheelZoom for zoom with trackpad
2017-04-04 15:06:08 +02:00
Andreas Hocevar
35ef65e6b9
Reset dragSegments after vertex deletion
2017-03-20 09:39:34 +01:00
Thomas Chandelle
08a118cc94
Determine if we should handle the drawing when the pointer is moving
2017-02-16 16:52:04 +01:00
Andreas Hocevar
b05136ea53
Merge pull request #6499 from tchandelle/circle-modify
...
Be more tolerant when comparing vertices when modifying a circle
2017-02-16 13:49:42 +01:00