Commit Graph

108 Commits

Author SHA1 Message Date
Tim Schaub
8a08ab6463 Correct types 2017-08-15 15:37:37 -04:00
Andreas Hocevar
1c8734b150 Use fractional coordinates for CSS positioning 2017-08-09 14:15:47 -06:00
Marc Jansen
d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
Frederic Junod
8aa30ee8f6 Allow user selection in overlay container 2017-04-24 09:32:36 +02:00
Jonathan Nagy
915b83a068 Remove trailing whitespace. 2017-03-08 16:34:27 +11:00
Jonathan Nagy
c54bf85dfc Overlay visible before updating render position
Make the overlay visible before updating the render position
so that the `offsetWidth` and `offsetHeight` can be 
considered in evaluating the offset and positioning of the 
element

See openlayers/openlayers#6566
2017-03-08 15:53:42 +11:00
Tim Schaub
f5aea97d3b All @api annotations imply stability 2017-02-06 09:22:05 -07:00
Frederic Junod
6605669cb6 Be more tolerant of map and position value
The `map` property type is `ol.Map|undefined` but `null` is set when
removing the overlay from the map:
https://github.com/openlayers/openlayers/blob/v3.20.1/src/ol/map.js#L453

This raise an exception with:
```js
map.removeOverlay(overlay);
overlay.setPosition(undefined);
```

Because `map === undefined` is used in `ol.Overlay.setPosition`
2017-01-23 17:06:11 +01:00
Tim Schaub
137cdc04c8 Remove ol.DEBUG 2017-01-01 20:37:52 -07:00
Tim Schaub
76c3c3cc7b Private enum for overlay properties 2016-12-27 13:59:20 -07:00
Tim Schaub
9ddee2ea4e Shared module for overlay positioning enum 2016-12-27 13:58:31 -07:00
Tim Schaub
3fd88b3a22 Shared module for map event type enum 2016-12-27 13:52:02 -07:00
Tim Schaub
2eedffa100 Separate olx.OverlayPanOptions from olx.animation.PanOptions 2016-11-06 10:40:27 -07:00
Tim Schaub
f6ad883db6 Use view.animate() to auto-pan an overlay 2016-11-06 09:13:55 -07:00
Frederic Junod
107dd6a85f Rename ol.MapEventType to ol.MapEvent.Type 2016-09-07 10:05:38 +02:00
Tim Schaub
651c6959ab Remove ol.global 2016-09-01 23:13:00 -06:00
Tim Schaub
ff8a84a220 Deal with ol.global issues 2016-09-01 06:58:12 -06:00
Frederic Junod
7df8b2bb2b Rename ol.OverlayPositioning to ol.Overlay.Positioning 2016-09-01 06:58:10 -06:00
Frederic Junod
556e443705 Rename ol.OverlayProperty to ol.Overlay.Property 2016-09-01 06:58:10 -06:00
Andreas Hocevar
d1e4b33760 Rename goog.DEBUG to ol.DEBUG 2016-08-31 21:10:01 +02:00
Frederic Junod
d4ad9ad616 Add missing goog.require('ol') 2016-08-17 09:57:21 +02:00
Tim Schaub
907a65ab83 Remove unused goog.require() calls in the source 2016-08-08 09:58:10 -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
Frédéric Junod
6d41e87ff5 Merge pull request #5475 from probins/enumprovide
Remove goog.provide from enums only used internally or in olx.js
2016-06-30 16:57:21 +02:00
nicholas
6b465902cd Remove goog.dom 2016-06-23 22:06:35 +12:00
Nicholas L
0fef14137c Remove unneeded comments and use ol.global 2016-06-20 21:41:20 +12:00
nicholas
ea1c7a6551 Remove goog.style.getPageOffset 2016-06-19 19:26:25 +12:00
nicholas
04c4b4efc1 Remove goog.style.setElementShown 2016-06-19 19:22:11 +12:00
nicholas
96a14e0515 Remove getSize 2016-06-19 19:22:11 +12:00
Peter Robins
bda673f389 Remove goog.provide from internal enums 2016-06-15 09:04:44 +00: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
2ec4969ac7 Remove api annotations from enums 2016-06-03 09:29:14 +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
Peter Robins
2a44669e18 Add some goog.requires to keep compiler happy 2016-05-09 16:00:07 +00: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
Frederic Junod
80e984a9c3 Use Array.isArray instead of goog.isArray 2016-04-04 09:06:29 +02:00
Frederic Junod
268d6eda8f Mark overlayContainer and overlayContainerStopEvent as non-nullable
And remove an unnecessary cast
2016-02-23 11:25:38 +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
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
Tim Schaub
13a981c94b Fewer blank lines 2016-01-11 22:03:23 -08:00
Tim Schaub
59a66c7aaa Remaining valid-jsdoc corrections 2016-01-11 18:56:08 -08:00
Frederic Junod
a186254e14 Remove use of goog.dom.createDom 2015-11-25 12:40:45 +01:00
Frederic Junod
a9cd2cd278 Use appendChild instead of goog.dom.append 2015-11-24 13:45:54 +01:00
jonataswalker
5dbaeb9ee5 Add method for retrieving ol.Overlay by id 2015-10-14 16:55:39 -03:00
jonataswalker
fce065e185 Add method for retrieving ol.Overlay by id 2015-10-14 16:01:48 -03:00
jonataswalker
d29e5eaef1 Add method for retrieving ol.Overlay by id 2015-10-14 12:15:53 -03:00