Commit Graph

337 Commits

Author SHA1 Message Date
Tim Schaub
4b57f7798f Use goog.dom.classlist functions
The goog.dom.classes functions have now been deprecated.  See 97e8a0c0fc
2014-07-01 14:09:28 -04:00
Tim Schaub
b9f444a008 Rename olx.View2DState to olx.ViewState and use viewState property 2014-06-27 09:58:25 -04:00
Tim Schaub
b88d2aebc9 Remove view.getView2D() method 2014-06-27 09:52:19 -04:00
Tim Schaub
3c1cb55079 Remove IView and IView2D 2014-06-27 09:52:19 -04:00
Peter Robins
75be215497 Add standard docs text to abstract base classes 2014-06-14 07:20:33 -04:00
Antoine Abt
5926611cd1 Merge pull request #2168 from tonio/keyboard_controls
Restore control’s keyboard navigation
2014-06-10 08:45:19 +02:00
Peter Robins
41d9f0360a Add @classdesc to classes 2014-06-09 12:10:19 -04:00
Antoine Abt
09719bdc70 Fixes button handlers event type 2014-06-06 09:32:39 +02:00
Antoine Abt
75cd5572aa Restore control’s keyboard navigation 2014-06-04 16:55:02 +02:00
Andreas Hocevar
eb6a938062 Do not document object literals as interfaces
Instead, object literals with properties that should not be
renamed can go in externs/olx.js.
2014-05-22 15:48:47 +02:00
Frederic Junod
2f918ea2a4 Remove unused goog.require 2014-05-21 16:06:32 +02:00
Andreas Hocevar
754ef24b0c List default controls and interactions 2014-05-15 17:04:58 +02:00
Andreas Hocevar
be73885e37 Merge pull request #2043 from ahocevar/nicer-api-docs
Nicer API docs
2014-05-07 09:20:22 -05:00
Antoine Abt
a51e834fef Merge pull request #2027 from tonio/rotate
Add a rotate control
2014-05-06 15:36:01 +02:00
Andreas Hocevar
8ee9f7cb6a Simplify the way we annotate observable properties
We no longer add observable annotations to the constructor.
Instead, we just mark getters (and for read/write properties
also setters) with an observable annotation.
2014-05-03 16:04:25 -04:00
Antoine Abt
603be52b1a Remove useless test in default controls 2014-05-02 14:12:31 +02:00
Antoine Abt
0bec5b5590 Add base control class, to simplify stylesheet 2014-05-02 14:12:31 +02:00
Antoine Abt
04fd0ecf53 Add rotate control to defaults. 2014-05-02 14:12:31 +02:00
Antoine Abt
229ae5e883 Add rotate control
- displayed when rotation ≠ 0
 - reset rotation on click
2014-05-02 14:12:31 +02:00
Tim Schaub
24498fa9d0 Defines in a namespace that can be required
For consistency, all defines are in the ol namespace.  If they are to be moved to another namespace, they need to be requireable.
2014-04-30 09:14:10 -06:00
Andreas Hocevar
fbdbbfb7a7 Get rid of stability annotations and document stability with api
This change adds a stability value to the api annotation, with
'experimental' as default value.

enum, typedef and event annotations are never exportable, but
api annotations are needed there to make them appear in the
docs.

Nested typedefs are no longer inlined recursively, because the
resulting tables get too wide with the current template.
2014-04-29 09:53:07 -06:00
Andreas Hocevar
c17ac0cae3 Greatly simplify and document the usage of JSDoc
This commit simplifies the exports.js plugin so it only relies
on the stability notes to generate the documentation, which
completely decouples it from the exportable API.

As a rule of thumb, whenever something has an 'api' annotation,
it should also have a 'stability' annotation. A more verbose
documentation of ol3 specific annotation usage is available in
the new 'apidoc/readme.md' file.

This commit also modifies all source files to implement these
usage suggestions.
2014-04-29 09:53:06 -06:00
Tim Schaub
fb497f5288 Annotations for exports 2014-04-29 09:53:05 -06:00
Frederic Junod
d00e515412 Remove name attributes from the zoom buttons 2014-04-24 14:45:14 +02:00
Alexandre Dubé
f0d159d6ef Fix zoomcontrol, set type button in button, not span 2014-04-18 09:45:09 -04:00
Frederic Junod
17ed43d230 Fix coding style
Use `goog.isDef(x) ? x : {}` instead of `x || {}`
2014-04-08 11:40:04 +02:00
Tim Schaub
78324fb54b Remove layers array from frame state 2014-04-04 07:36:42 -06:00
ahocevar
a3be9e720a Register pointer event handlers as disposable 2014-04-01 15:31:39 +02:00
ahocevar
e05cff670b Use pointer events for button clicks 2014-04-01 13:46:58 +02:00
Bart van den Eijnden
83bf626e03 Mark parts of control and overlay as stable 2014-03-17 11:06:46 +01:00
Tom Payne
0335d4aa6a Use oli.View2DState instead of ol.View2DState 2014-03-10 17:19:29 +01:00
Tom Payne
022a7a03e0 Use oli.FrameState instead of ol.FrameState 2014-03-10 14:48:23 +01:00
Tom Payne
94a3504252 Revert "Add ol.BrowserFeature.HAS_FULLSCREEN constant"
This reverts commit 5a940c207a.

Detection of full screeen support requires the document to have a body.
This is not the case if ol3 is loaded in the head.  Therefore, defer the
test for full screen support to when it is needed.
2014-02-27 13:28:23 +01:00
Frederic Junod
ac9fe664e0 Add fullscreen API support to IE11 2014-02-27 09:31:42 +01:00
Frederic Junod
5a940c207a Add ol.BrowserFeature.HAS_FULLSCREEN constant 2014-02-27 09:30:05 +01:00
Antoine Abt
d53fa8f45a Fix chrome not to blur on mouseout/focusout
may be related to https://code.google.com/p/chromium/issues/detail?id=321264 ?
2014-02-26 11:24:54 +01:00
Antoine Abt
7426da61ea Make ZoomToExtent listen on button click
& not its container
2014-02-26 11:15:03 +01:00
oterral
7e842b0850 Fix option name zoomInTipLabel 2014-02-24 15:26:13 +01:00
Antoine Abt
ae3ad24928 Reorder default controls 2014-02-20 16:52:09 +01:00
Antoine Abt
30bc97755a Restore preventDefault call that shouldn’t have been removed 2014-02-20 16:47:34 +01:00
Antoine Abt
ed8e0e8552 Minor cleanups 2014-02-20 16:47:34 +01:00
Antoine Abt
d52f62fb5a Make Fullscreen control use <button> instead of <a> 2014-02-20 16:47:33 +01:00
Antoine Abt
b3abc166a4 Make zoomToExtent control use <button> instead of <a> 2014-02-19 09:34:04 +01:00
Antoine Abt
b6052320ad Coding style 2014-02-18 15:49:45 +01:00
Antoine Abt
1a44fb2ff3 Make zoom control tip texts configurable 2014-02-18 15:25:58 +01:00
Mark Prins
18c2ffe522 use button elements instead of anchor elements and add tooltips to zoomcontrol 2014-02-17 14:57:15 +01:00
Mark Prins
9adf8b01f6 use button elements and add tooltips to zoomcontrol 2014-02-17 14:57:15 +01:00
Éric Lemoine
66a17b20e0 Better code formatting 2014-02-16 23:20:32 +01:00
Éric Lemoine
eef32c5d5d Use minus sign as zoom out label 2014-02-16 23:19:03 +01:00
Antoine Abt
bb50d5936f Prevent OSX Safari to display distorded map 2014-02-14 11:32:00 +01:00