Tim Schaub
f10c90bdba
Simpler type for ol.events.Key
...
Instead of having `ol.events.Key` be a listener object or an array of listener objects, it should be less error prone to have it just be a single listener object.
To avoid using too many functions with multiple return types, the `ol.events.*` functions for registering and unregistering listeners no longer accept an array of event types (and only a single key is returned when registering).
To make it convenient for users to register multiple listeners at once, the `observable.on()` method accepts an array of event types. Internally in the library, we should use the less risky `ol.events.listen()`.
2016-02-03 11:19:38 +01:00
Tim Schaub
e48ab95735
Use originalEvent instead of browserEvent
2016-02-03 11:19:38 +01:00
Tim Schaub
80df1f5ae8
Move opt_useCapture arg to the end of the list
2016-02-03 11:19:38 +01:00
Andreas Hocevar
c51d717657
Refactor event manager to remove memory leaks
2016-02-03 11:19:38 +01:00
Andreas Hocevar
7e27ba1d42
Remove goog.fx.Dragger
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
Yashar Moradi
299a62804c
source option added to ol.control.FullScreen including an example
2016-01-26 09:27:39 +01:00
Frederic Junod
3df9ae8c5e
Use map.getTargetElement instead of map.getTarget
2016-01-12 11:36:07 +01:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Tim Schaub
54df314936
Consistent curly brace style
2016-01-11 18:56:08 -08:00
Andreas Hocevar
393a95e41c
Properly handle modulo of negative numbers
2016-01-07 20:19:40 +01:00
Andreas Hocevar
6b8da1237c
Simplify scaleline calculation
2016-01-07 20:14:44 +01:00
Frederic Junod
290a83e2ed
Remove blur workaround in ol.control.Attribution
...
leftover from #3954
2015-11-23 16:18:36 +01:00
Frederic Junod
e34c18a26e
Remove use of goog.dom.createTextNode
2015-11-23 09:23:58 +01:00
Frederic Junod
1092f6b2a2
Remove use of goog.dom.createElement
2015-11-23 09:22:39 +01:00
Bart van den Eijnden
5c592731f3
Change the label of the full screen button to be more intuitive ( closes #4445 )
2015-11-18 11:42:27 +01:00
Frederic Junod
dfbe7447c9
Test number property with !== undefined
...
Fixes #4424
2015-11-16 09:39:35 +01:00
Tamar Cohen
4a163b54f3
Rotate control now takes optional resetNorth function
2015-11-02 10:06:59 -08:00
Alexandre Dubé
718f32b177
Fix Zoom control duration option - allow 0 as value
2015-10-14 15:19:16 -04:00
Marc Jansen
b75ef3ae18
Merge pull request #4259 from marcjansen/math-radians-degrees
...
Remove use of toDegrees/toRadians util functions
2015-10-12 23:27:20 +02:00
Marc Jansen
47a7b03e0e
Remove use of toDegrees/toRadians util functions
...
Instead of goog.math.toRadians and goog.math.toDegrees, we now use
our own implementations of these basic conversion functions.
2015-10-12 21:16:03 +02:00
Marc Jansen
9386415633
Remove usage of goog.dom.TagName enum
2015-10-12 20:45:49 +02:00
Andreas Hocevar
e111e30f33
Merge pull request #4255 from ahocevar/zoomslider-width
...
Fix zoom slider width for retina displays
2015-10-12 20:19:29 +02:00
Andreas Hocevar
61ce463cf9
Fix zoom slider width for retina displays
...
This also simplifies the css by using a button for the slider, like for other
controls.
2015-10-12 19:24:00 +02:00
Andreas Hocevar
c067f40ecf
Merge pull request #3727 from bogdanvaduva/overview_map
...
Added getOverviewMap getter method in overviewmapcontrol.js
2015-10-08 19:54:16 +02:00
Bogdan Vaduva
1f7bdd10f8
Changed @api experimental to @api
2015-10-08 19:11:23 +03:00
Andreas Hocevar
f95b154117
Merge pull request #4116 from ahocevar/overviewmap-view
...
Make ol.control.OverviewMap's view configurable
2015-10-08 11:44:38 +02:00
Frédéric Junod
ce9ac92028
Merge pull request #4224 from fredj/simplify_rotate
...
Don't transform the angle into degrees to rotate the element
2015-10-07 09:04:41 +02:00
Frederic Junod
d495b19448
Don't transform the angle into degrees to rotate the element
2015-10-06 14:04:47 +02:00
Frederic Junod
b3493c6382
Remove unnecessary cast
2015-10-06 11:26:39 +02:00
Frederic Junod
9b6ad1b36f
Remove use of goog.dom.appendChild
...
Use `parent.appendChild(child)` instead.
2015-10-01 12:06:38 +02:00
Marc Jansen
d728c71f02
Remove goog.isNull in control classes
2015-10-01 09:15:15 +02:00
Tim Schaub
6bdacced92
Merge pull request #4176 from tschaub/remove-isdefandnotnull
...
Remove use of goog.isDefAndNotNull().
2015-10-01 00:05:57 -06:00
Andreas Hocevar
e6c5fa9cd7
Merge pull request #4198 from denilsonsa/patch-2
...
Improve ol.control.Rotate.prototype.resetNorth_ performance
2015-09-30 16:26:09 +02:00
Denilson Figueiredo de Sá
c8f0bb0ade
Improve ol.control.Rotate.prototype.resetNorth_ performance
...
Changing. resetNorth_ function from O(n) to O(1).
To reproduce this issue, open the developer console and execute:
map.getView().setRotation(5000000000);
Then click on the rotation button. Before the commit, it takes a few
seconds, after this commit it is instantaneous.
In addition, due to limited floating point precision, the previous code
calculates a different value from this one.
2015-09-30 09:37:51 -03:00
Denilson Figueiredo de Sá
e7ba63e020
Remove blur action on MOUSEOUT on Zoom Out button
...
This is a follow up of commit 761aa0ea5c .
That commit removed ol.control.Control.bindMouseOutFocusOutBlur function,
but forgot to remove this piece of code here.
2015-09-30 08:56:35 -03:00
Tim Schaub
b48cabee28
Remove unnecessary goog.isDefAndNotNull() calls
2015-09-29 09:32:51 -06:00
Tim Schaub
ac7db89a91
Replace goog.isDefAndNotNull() with truthy checks
2015-09-29 09:32:51 -06:00
Marc Jansen
bc58c383ba
Replace goog.nullFunction with ol.nullFunction
2015-09-29 16:39:35 +02:00
Frederic Junod
496cece074
Remove use of goog.array.forEach
2015-09-29 10:55:17 +02:00
Tim Schaub
f746cb7f57
Use ol.math.clamp()
2015-09-27 12:26:21 -06:00
Tim Schaub
0927c55b3c
Toward natural JavaScript syntax
2015-09-25 12:16:42 -06:00
Tim Schaub
a096ec5bf7
Remove goog.isDef from controls (-278 B)
2015-09-25 11:28:54 -06:00
Tim Schaub
007194a18f
Remove goog.isDef from attributioncontrol.js (-33 B)
2015-09-25 11:28:54 -06:00
Frederic Junod
0d23ab44b3
Remove use of goog.array.isEmpty
2015-09-22 11:25:04 +02:00
Andreas Hocevar
ea8ad4fc16
Make ol.control.OverviewMap's view configurable
...
This is useful for creating an OverviewMap in a different projection than
EPSG:3857.
2015-09-16 17:28:16 +09:00
Tim Schaub
eed926fa94
Missing ol.control.OverviewMap#getCollapsed description
2015-09-06 09:36:00 -06:00
Frederic Junod
761aa0ea5c
Remove ol.control.Control.bindMouseOutFocusOutBlur function
...
It was a workaround added in #1761 to hide the button tooltip on
OSX / Chrome 32 and 33.
Because we're not using the tooltips anymore (see #2781 ) and this
version of chrome is deprecated this workaround can be removed.
2015-08-03 17:12:33 +02:00
Frederic Junod
7634c0c2c4
Fix the event type fired by goog.fx.Dragger
2015-07-20 15:33:44 +02:00
vmalaret
74759142d9
Replace fitGeometry and fitExtent with fit
...
Fit accepts either a geometry or an extent.
This combines two previously distinct functions
into one more flexible call.
Also brings the rotations support and options
previously available to fitGeometry to extents
2015-07-02 15:19:08 +02:00