Add ol.BrowserFeature.HAS_FULLSCREEN constant

This commit is contained in:
Frederic Junod
2014-02-26 14:40:04 +01:00
parent f9a9f70a43
commit 5a940c207a
3 changed files with 14 additions and 2 deletions
+10
View File
@@ -2,6 +2,7 @@ goog.provide('ol.BrowserFeature');
goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('goog.dom.fullscreen');
goog.require('goog.userAgent');
goog.require('ol.webgl');
@@ -141,6 +142,15 @@ ol.BrowserFeature.HAS_DEVICE_ORIENTATION =
ol.BrowserFeature.HAS_DOM = ol.ENABLE_DOM;
/**
* True if browser supports the fullscreen API.
* @const
* @type {boolean}
* @todo stability experimental
*/
ol.BrowserFeature.HAS_FULLSCREEN = goog.dom.fullscreen.isSupported();
/**
* Is HTML5 geolocation supported in the current browser?
* @const