Remove geolocation detection from ol/has

This commit is contained in:
Frederic Junod
2019-05-18 08:22:48 +02:00
parent 0631a121c3
commit 39bb6a8ffe
3 changed files with 11 additions and 11 deletions
+10
View File
@@ -4,6 +4,16 @@
#### Backwards incompatible changes
#### Removal of `GEOLOCATION` constant from `ol/has`
If you were previously using this constant, you can check if `'geolocation'` is define in `navigator` instead.
```js
if ('geolocation' in navigator) {
// ...
}
```
#### Removal of CSS print rules
The CSS media print rules were removed from the `ol.css` file. To get the previous behavior, use the following CSS: