Tim Schaub
ffe3565166
Single provide from ol/collection.js
2016-08-07 10:49:06 -06:00
Andreas Hocevar
e18d41b5e0
Remove gratuitous debug assertions
2016-08-04 11:29:54 +02:00
Andreas Hocevar
e0015b3d4e
Use goog.DEBUG instead of ol.DEBUG for now
2016-08-04 11:29:54 +02:00
Andreas Hocevar
6f5ed17fc5
Remove goog.asserts.*
...
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
Peter Robins
f8f2cd11d5
Replace goog.getUid with ol.getUid
2016-07-20 11:01:00 +00:00
Frederic Junod
460ea4e809
Return if a vertex was removed in ol.interaction.Modify#removeVertex_
2016-07-04 17:09:01 +02:00
Andreas Hocevar
6718fc982e
Merge pull request #5450 from probins/typedefs
...
Remove sub-namespaces from all remaining typedefs
2016-06-14 17:32:10 +02:00
Andreas Hocevar
d26ac55ed0
Merge pull request #5453 from ahocevar/mapbrowserpointerevent
...
Reference ol.MapBrowserEvent instead of ol.MapBrowserPointerEvent
2016-06-13 14:01:49 +02:00
Andreas Hocevar
400484e663
Reference ol.MapBrowserEvent instead of ol.MapBrowserPointerEvent
...
There is nothing exportable in ol.MapBrowserEvent in addition to what is
exportable in ol.MapBrowserEvent.
2016-06-09 18:22:11 +02:00
Frederic Junod
4bf1f56405
Add missing semicolon
2016-06-09 15:39:46 +02:00
Peter Robins
2c29512c80
Remove sub-namespaces from all remaining typedefs
2016-06-09 10:01:52 +00:00
Frederic Junod
e289bfbb7d
Use ol.inherits instead of goog.inherits
2016-06-08 08:38:12 +02:00
Andreas Hocevar
4626554a18
Merge pull request #5335 from probins/typedefs
...
Move typedefs to separate file
2016-05-13 10:23:14 +02:00
Peter Robins
4f0b4dacbd
Move sub-namespace typedefs to typedefs.js
...
Here too there is one problem case.
2016-05-11 19:45:59 +00:00
Peter Robins
535e8f5e35
Move top-level typedefs to typedefs.js
...
With one exception, those directly in the `ol` namespace can be moved without problem.
Some left-over goog.requires are also removed.
2016-05-11 17:18:05 +00:00
Frederic Junod
b49546d2af
Add a 'condition' option to ol.interaction.Modify
2016-05-10 17:17:17 +02:00
Peter Robins
2a44669e18
Add some goog.requires to keep compiler happy
2016-05-09 16:00:07 +00:00
giohappy
cd2ea6c7d6
Block removePoint during while dragging
2016-04-29 09:00:14 +02:00
giohappy
d49bcdeedc
Expose removeVertex_ as removePoint
2016-04-28 12:47:46 +02:00
Mattias Josefsson
8f96251618
Added wanted change for issue #5145
2016-04-26 10:34:55 +02:00
Mattias Josefsson
e85d8fa749
Fix for close draw polygon error
2016-04-25 11:48:55 +02:00
Frederic Junod
c549fadc01
Remove goog.functions.and from ol.interaction.Modify
2016-04-07 11:46:52 +02:00
Renaud Michaëlis
53a9341ef0
Allow to delete the starting or ending vertex
...
* Allow to delete the starting or ending vertex
* Test if starting and ending vertex are removed
2016-04-06 13:47:37 +02:00
Tim Schaub
80df1f5ae8
Move opt_useCapture arg to the end of the list
2016-02-03 11:19:38 +01:00
Andreas Hocevar
3f2d79b7fe
Replace goog.events.Event/EventTarget system with our own
...
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01:00
Andreas Hocevar
2fb33ba940
Type fixes and simplifications
2016-02-03 11:41:40 +13:00
Nicholas L
d820b54443
Remove goog.array.equals and goog.array.stableSort
2016-02-03 11:41:39 +13:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Tim Schaub
3cf8618fc7
Prefer single line assignment to 80 character limit
2016-01-11 18:56:08 -08:00
Tim Schaub
59a66c7aaa
Remaining valid-jsdoc corrections
2016-01-11 18:56:08 -08:00
Tim Schaub
fd0e2436da
Always provide a default case for switch
2016-01-11 18:56:08 -08:00
Tim Schaub
ec10b661f3
Use block scoping
2016-01-11 18:56:08 -08:00
Frederic Junod
5ead77bcd1
Remove extra space in type annotation
2015-11-19 10:03:42 +01:00
Andreas Hocevar
dc0c0877d7
Recover from bad merge conflict resolution in #4036
2015-10-08 15:18:11 +02:00
Andreas Hocevar
46a1140583
Merge pull request #4036 from alvinlindstam/fix-modify-events
...
Fix modify interaction event order
2015-10-08 12:17:57 +02:00
Frederic Junod
4d53049a7f
Remove unnecessary cast
2015-10-01 13:38:49 +02:00
Marc Jansen
a38ac3a07b
Use !!expr and not the verbose expr !== null
...
This addresses review comments by @tschaub.
2015-10-01 09:18:53 +02:00
Marc Jansen
be2e4a33ae
Remove goog.isNull in interaction classes
2015-10-01 09:17:14 +02:00
Tim Schaub
0927c55b3c
Toward natural JavaScript syntax
2015-09-25 12:16:42 -06:00
Marc Jansen
d610b206f7
Adjust checks against undefined as suggested
...
This commit changes the various checks against undefined as suggested by
@elemoine, see e.g. his comments on 38636513bfc3792125de2e711a24bd3c898875ac.
2015-09-25 11:37:30 -06:00
Marc Jansen
68442578ba
Use ol.isDef when checking booleans
2015-09-25 11:35:11 -06:00
Marc Jansen
0e4c73072f
Remove goog.isDef from modifyinteraction
2015-09-25 11:35:11 -06:00
Éric Lemoine
9894ceda2a
Remove bogus assertion
...
This commit removes an incorrect assertion from the modify interaction, which currently triggers when adding vertices to a line string. A new condition is added to the `if` statement to prevent a compilation error. In practice, `depth` and `segmentDataMatch.depth` are either both defined or both undefined.
2015-09-23 09:42:02 +02:00
Frederic Junod
ffc24e892e
Rename ol.ModifyEvent to ol.interaction.ModifyEvent
2015-08-25 09:26:10 +02:00
Frederic Junod
49b8f90e66
Add missing goog.provide
...
The new version of the closure-compiler (version 20150729) wants that all the classes
tagged with `@constructor` to be provided (with `goog.provide`).
2015-08-25 09:26:10 +02:00
Frederic Junod
eb4dab90e5
Better type for ol.interaction.Modify#rBush_
2015-08-25 09:26:10 +02:00
Alvin Lindstam
c5fe7df2e4
Fix modify event trigger order, should trigger modifystart before any modification and modifyend last.
2015-08-23 23:35:07 +02:00
Éric Lemoine
5f7e6ac61a
Make Modify interaction listen to feature changes
...
This commit makes the Modify interaction modify its segment data when the candidate features change.
2015-08-18 16:39:49 +02:00
Frederic Junod
0a6745f1e4
Remove unused goog.require
...
Found by the latest version of closure-compiler (v20150729)
2015-08-04 10:01:11 +02:00
Tim Schaub
85ddded15c
Only remove the vertex feature if it exists
...
When deleting a vertex shared by multiple features, we iterate through drag segments and only need to remove the vertex feature once.
2015-08-03 22:44:22 -06:00