Namespace: has

ol.has

Members

ol.has.CANVAS{boolean}

True if browser supports Canvas.

ol.has.DEVICE_ORIENTATION{boolean}

Indicates if DeviceOrientation is supported in the user's browser.

ol.has.DEVICE_PIXEL_RATIO{number}

The ratio between physical pixels and device-independent pixels (dips) on the device (window.devicePixelRatio).

ol.has.GEOLOCATION{boolean}

Is HTML5 geolocation supported in the current browser?

ol.has.TOUCH{boolean}

True if browser supports touch events.

ol.has.WEBGL{boolean}

True if browser supports WebGL.