Commit Graph

482 Commits

Author SHA1 Message Date
nicholas 6b465902cd Remove goog.dom 2016-06-23 22:06:35 +12:00
Andreas Hocevar 030c0dad3d Avoid creation of unnecessary object literals 2016-06-20 21:44:15 +12:00
nicholas ea1c7a6551 Remove goog.style.getPageOffset 2016-06-19 19:26:25 +12:00
nicholas 6da5a1e9f7 Remove goog.style.getContentBoxSize 2016-06-19 19:22:11 +12: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
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
Andreas Hocevar 8c8c4c3df4 Merge pull request #5324 from probins/rmrequires
Remove unneeded goog.provides/requires for typedefs
2016-05-10 16:31:42 +02:00
Andreas Hocevar c4387c14ff Merge pull request #5313 from ahocevar/rastersource-framestate-extent
Rastersource framestate extent
2016-05-10 14:35:25 +02:00
Peter Robins 2a44669e18 Add some goog.requires to keep compiler happy 2016-05-09 16:00:07 +00:00
Andreas Hocevar 39087b2fa4 Reuse the frameState extent 2016-05-09 15:23:00 +02:00
Peter Robins f57065c412 Remove unneeded goog.provides/requires for typedefs
In general, typedefs do not need and should not have goog.require/provide
2016-05-09 13:21:25 +00:00
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
Tim Schaub 0b4ef31750 Get raster sources working again
This reverts 8e1ffbf91e
2016-05-03 17:47:05 -04:00
Samuel Lapointe f835d86333 Reduce closure dependency, fix GET issue 2016-05-02 09:34:58 -04: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
Frederic Junod 92c96b95f9 Reuse the frame state viewHints array if defined 2016-04-14 10:36:12 +02:00
Frederic Junod 8e1ffbf91e Reuse the frame state extent array if defined 2016-04-14 10:32:10 +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
Frederic Junod 80e984a9c3 Use Array.isArray instead of goog.isArray 2016-04-04 09:06:29 +02:00
Björn Harrtell 44e04be67f Get rid of goog.functions 2016-04-01 10:32:15 +02:00
Frederic Junod 64654e1e72 Remove goog.dom.classlist usage 2016-03-29 10:28:20 +02:00
drnextgis c6f568f99b assertion to check that there's a DOM node for target element 2016-03-21 16:02:13 +06:00
Björn Harrtell 234e8c2fde Get rid of goog.log 2016-03-19 23:12:56 +01:00
Frederic Junod cb251f1648 Remove unused ol.Map#isDef function 2016-03-09 08:36:36 +01:00
Frederic Junod 263f5bb8ab Remove the viewport on map dispose 2016-03-07 11:46:18 +01:00
Tim Schaub 09eee46822 Use ol.Disposable instead of goog.Disposable 2016-03-02 15:44:07 -07:00
Frederic Junod 2cb48d3d62 Stop wheel events instead of DOMMouseScroll events 2016-03-02 15:25:22 +01:00
Frederic Junod 81e563b2b3 Remove use of goog.style.getRelativePosition
Use Element.getBoundingClientRect() and Event.clientX/Event.clientY instead.
2016-02-24 17:28:46 +01:00
Frederic Junod 268d6eda8f Mark overlayContainer and overlayContainerStopEvent as non-nullable
And remove an unnecessary cast
2016-02-23 11:25:38 +01:00
Marc Jansen 068960e4b2 Don't use goog.isBoolean() 2016-02-16 23:52:20 +01:00
Andreas Hocevar bcf379cc8e Merge pull request #4794 from ahocevar/fixed-tileloading
Make tile loading count no longer depend on source count
2016-02-16 15:51:55 +01:00
Marc Jansen efa82dccf9 Remove use of goog.isString() 2016-02-06 12:56:55 +01:00
Andreas Hocevar 3f36e0967f Make tile loading count no longer depend on source count 2016-02-05 09:38:16 +01:00
Andreas Hocevar 0c23d9a7ff Keep track of tile source count 2016-02-04 06:54:45 -07:00
Tim Schaub 0dce343d4f Remove use of goog.object.getCount() 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 80df1f5ae8 Move opt_useCapture arg to the end of the list 2016-02-03 11:19:38 +01:00
Andreas Hocevar dc0393acff Add map tests for resize and animationDelay 2016-02-03 11:19:38 +01:00
Andreas Hocevar d7497f9686 Always provide useCapture and async args to browser 2016-02-03 11:19:38 +01:00
Andreas Hocevar f35d0106b8 Remove goog.net.* and goog.async.AnimationDelay 2016-02-03 11:19:38 +01:00
Andreas Hocevar 2b451e7893 Remove goog.dom.ViewportSizeMonitor 2016-02-03 11:19:38 +01:00
Andreas Hocevar 6ac3f30c8f Remove goog.events.MouseWheelEvent and goog.events.MouseWheelHandler 2016-02-03 11:19:38 +01:00
Andreas Hocevar 1a6daa297e Remove goog.events.KeyHandler 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
Nicholas L d743ada8fd Remove goog.array.remove 2016-02-03 11:41:39 +13:00
Nicholas L db3ad70a3d Remove use of goog.bind and use ES5 .bind 2016-01-15 22:10:55 +13:00
Tim Schaub 13a981c94b Fewer blank lines 2016-01-11 22:03:23 -08:00