Frederic Junod
e1436b25e0
Export ol.BrowserFeature.HAS_WEBGL
2014-05-08 08:57:29 +02:00
Tim Schaub
3f0da11008
Move ol defines from browserfeature.js to ol.js
2014-04-30 08:24:00 -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
55de0a54b9
Add ol.dom.createCanvasContext2D function
2014-04-02 09:37:41 +02:00
Tim Schaub
862deefa43
Merge pull request #1897 from tschaub/absolute
...
Don't use protocol relative URLs.
2014-03-27 09:56:27 -06:00
Frederic Junod
0062759f75
Use native JSON.parse function
2014-03-26 16:40:13 +01:00
Tim Schaub
9ce7d6ea45
Avoid protocol relative URL to support apps using file protocol
2014-03-24 15:46:12 -06:00
Frederic Junod
f2d8ad34fa
Fix ol.BrowserFeature.HAS_TOUCH detection code
...
Use goog.global instead goog.global.document.documentElement to avoid
false negative results when using the chrome development tools (Touch
Events emulation).
Code borrowed from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
except for the DocumentTouch part which is deprecated (https://developer.mozilla.org/en-US/docs/Web/API/DocumentTouch )
Fixes #1869
2014-03-17 15:04:55 +01:00
Frederic Junod
aee76c989d
Change ol.BrowserFeature.HAS_POINTER feature detection
...
Because navigator.pointerEnabled will not be part of the final spec.
See https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890
2014-03-14 10:16:27 +01:00
Frederic Junod
cbb875e504
Add extern for Navigator.prototype.pointerEnabled
2014-03-14 10:16:26 +01:00
tsauerwein
eca6846dac
move checks for pointer support into browserfeature module
2014-03-14 10:16:26 +01:00
Frederic Junod
5f43fe6da0
Add '@const' to ol.BrowserFeature.HAS_ARRAY_BUFFER
2014-03-13 10:54:43 +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
Tom Payne
2d0b90a845
Add ol.BrowserFeature.HAS_ARRAY_BUFFER
2014-02-17 17:37:55 +01:00
Tom Payne
1924e2b9b3
Add detection of canvas line dash support
2014-02-12 15:56:01 +01:00
Austin Hyde
ff4f4be8aa
Fix typo, simplify a legacy IE check
2014-02-05 10:32:14 -05:00
Austin Hyde
9ffed5bf5f
Add a compile-time flag to enable legacy IE support
2014-02-05 10:32:14 -05:00
Tom Payne
b6af02a762
Add ol.ENABLE_VECTOR to control inclusion of vector layer renderers
2014-01-30 11:20:59 +01:00
Tom Payne
7e020e4d26
Add ol.ENABLE_TILE to control inclusion of tile layer renderers
2014-01-30 11:20:59 +01:00
Tom Payne
8b128ece81
Add ol.ENABLE_IMAGE to control inclusion of image layer renderers
2014-01-30 11:20:59 +01:00
Frederic Junod
9f79d33486
Create 'type' annotation for 'const' variables
...
From https://developers.google.com/closure/compiler/docs/js-for-compiler :
"The type declaration and additional comment are optional. If you
provide a type declaration, put the declaration on a separate line."
2014-01-09 09:53:20 +01:00
Frederic Junod
b4800dc637
Fix indentation in commments
2014-01-06 16:06:47 +01:00
Éric Lemoine
779ea26f81
No need for @type when using @const
2013-12-18 11:24:55 +01:00
Éric Lemoine
7fe684a6d4
HAS_WEBGL is false if ENABLE_WEBGL is false
2013-12-18 11:20:14 +01:00
Éric Lemoine
3df49423ad
HAS_DOM is false if ENABLE_DOM is false
2013-12-18 11:20:14 +01:00
Éric Lemoine
5bb6dbfef3
HAS_CANVAS is false if ENABLE_CANVAS is false
2013-12-18 11:20:14 +01:00
Éric Lemoine
5520cc530d
Move ol.ENABLE_[CANVAS|DOM|WEBGL] @define's to browserfeature.js
2013-12-18 11:20:14 +01:00
Éric Lemoine
c8038f7855
Add ol.BrowserFeature.HAS_DOM
2013-12-18 11:20:14 +01:00
Éric Lemoine
42a2f7aab9
Add ol.BrowserFeature.HAS_CANVAS
2013-12-18 11:20:14 +01:00
Éric Lemoine
b6ec5838f7
Add ol.BrowserFeature.HAS_GEOLOCATION
2013-12-18 11:20:14 +01:00
Éric Lemoine
62e8803287
Add ol.BrowserFeature.HAS_DEVICE_ORIENTATION
2013-12-18 11:20:14 +01:00
Éric Lemoine
79718151b7
Add ol.BrowserFeature.HAS_WEBGL
2013-12-18 11:20:13 +01:00
Éric Lemoine
73f24cf7b0
goog.require creates a namespace object already
2013-12-18 11:20:13 +01:00
Frederic Junod
71d3fc4921
Add ol.BrowserFeature.DEVICE_PIXEL_RATIO constant
2013-11-21 17:06:57 +01:00
ahocevar
a437bea61f
Use no browser globals at all
2013-04-10 16:53:45 +02:00
ahocevar
dc1d7a1aba
Don't use window and document
...
With this change, our JavaScript can also be executed by
non-brower engines.
2013-04-10 15:48:17 +02:00
Jeff Williams
97879a3572
remove descriptions from JSDoc type tags
2013-03-21 09:54:52 -07:00
Frederic Junod
bf63ddfebe
Test if browser supports Windows Pointer events
2013-01-25 16:38:45 +01:00
augustus
f253c1bcf8
Some comments (no changes to code)
2012-11-09 16:26:59 +01:00
Tom Payne
8dc57d5148
Add ol.ASSUME_TOUCH @define
2012-09-27 18:21:21 +02:00
ahocevar
9536ba8e14
Common place to store browser features
...
The ol.BrowserFeature object is supposed to provide all detected browser features in a central place.
2012-09-27 17:09:19 +02:00