Andreas Hocevar
fbb9194923
Merge pull request #5274 from samuellapointe/logofix
...
Allow using elements in logo attribution options
2016-05-09 13:46:11 +02:00
Samuel Lapointe
f835d86333
Reduce closure dependency, fix GET issue
2016-05-02 09:34:58 -04:00
Frederic Junod
7c15280e81
Remove use of goog.partial
...
Use Function.prototype.bind instead, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Partially_applied_functions_(currying)
2016-05-02 14:52:09 +02:00
Samuel Lapointe
3a1ff59cfb
Allow using elements in logo attribution options
...
This commit lets the user use an element object instead of a {src: href} object for an attribution logo when creating a map. This opens a lot of possibilities for that logo, for example setting the target to force the logo to open in a new tab when clicked.
2016-04-26 15:30:09 -04:00
Bart van den Eijnden
231234f9d0
Fix typo in rotate control for css classList
2016-04-08 10:51:26 +02:00
Nicholas Latham
cd6494149b
Remove goog.global ( #5178 )
...
* Remove goog.global
* Correct externs location
* Use Function('return this')
* Remove global externs
2016-04-07 23:36:48 +02:00
nicholas
863589e5ed
Remove commented out code
2016-03-31 19:09:13 +13:00
nicholas
68fd5267c2
Removed goog.dom.classlist.enable
2016-03-31 19:09:13 +13:00
nicholas
b9073013db
Remove goog.classlist.toggle
2016-03-31 19:09:13 +13:00
nicholas
8f8068b88c
Removed goog.dom.classlist
2016-03-31 19:09:13 +13:00
Frederic Junod
0bb3f1e228
Reuse dragListenerKeys_ variable in ol.control.ZoomSlider
2016-03-29 16:52:28 +02:00
Frederic Junod
64654e1e72
Remove goog.dom.classlist usage
2016-03-29 10:28:20 +02:00
AvatharDG
e752a8cea3
Update fullscreencontrol.js
2016-03-24 09:41:01 +01:00
AvatharDG
290f8b5c7d
Update fullscreencontrol.js
2016-03-24 09:39:31 +01:00
AvatharDG
c9cb9b6d36
Memory leak in ol.control.FullScreen
...
Register and unregister listener in setMap method.
2016-03-24 09:35:10 +01:00
Frederic Junod
93abfc9a03
Remove use of goog.style.setBorderBoxSize
2016-03-14 08:45:18 +01:00
Frederic Junod
8eb3e55aa0
Remove use of goog.math.Size
2016-03-14 08:45:18 +01:00
Tim Schaub
09eee46822
Use ol.Disposable instead of goog.Disposable
2016-03-02 15:44:07 -07:00
Frederic Junod
e9a5fadacc
Get rid of goog.dom.getFirstElementChild
...
Use [firstElementChild](https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/firstElementChild ) instead.
2016-02-29 16:59:29 +01:00
Frederic Junod
48064306a1
Remove use of goog.math.Rect
2016-02-24 14:32:58 +01:00
Frederic Junod
373393dce7
Add missing 'private' jsdoc tag
2016-02-24 14:32:57 +01:00
Frederic Junod
805b81cea7
Remove use of goog.style.setPosition
...
Use element.style.left and element.style.top instead
2016-02-24 12:23:10 +01:00
Frederic Junod
296ec9799f
Remove use of goog.dom.createDom
2016-02-15 16:40:07 +01:00
Guillaume Beraudo
3e9683d88d
Fix checks for undefined in zoomtoextentcontrol
2016-02-11 11:03:35 +01:00
Guillaume Beraudo
4722d341af
Fix checks for undefined in zoomslidercontrol
2016-02-11 11:03:35 +01:00
Guillaume Beraudo
b53d74285b
Fix checks for undefined in zoom control
2016-02-11 11:03:35 +01:00
Guillaume Beraudo
6c1d0f1bbe
Fix checks for undefined in scaline control
2016-02-11 11:03:35 +01:00
Guillaume Beraudo
cf5006617c
Fix checks for undefined in rotate control
2016-02-11 11:03:35 +01:00
Guillaume Beraudo
adb5b78cb6
Fix checks for undefined in overviewmapcontrol
2016-02-11 11:03:35 +01:00
Guillaume Beraudo
6779ab5e29
Fix checks for undefined in mousepositioncontrol
2016-02-11 11:03:35 +01:00
Guillaume Beraudo
a513754d25
Fix checks for undefined in fullscreencontrol
2016-02-11 11:03:35 +01:00
Guillaume Beraudo
9703be932d
Fix checks for undefined in attributioncontrol
2016-02-11 11:03:35 +01:00
Marc Jansen
efa82dccf9
Remove use of goog.isString()
2016-02-06 12:56:55 +01:00
Tim Schaub
8aecb3270c
Replace goog.object.isEmpty() with ol.object.isEmpty()
2016-02-04 06:54:44 -07:00
Tim Schaub
a74af66d5f
Use ol.object.assign() instead of goog.object.clone()
2016-02-04 06:54:43 -07:00
Frederic Junod
c43de104ce
Remove unnecessary newlines
2016-02-04 12:24:20 +01:00
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