ol-fullscreen-control
A Fullscreen control for OpenLayers.
Usage
vue
<template>
<ol-map ref="map" style="height: 400px" :controls="[]">
<ol-view
ref="view"
:center="center"
:rotation="rotation"
:zoom="zoom"
:projection="projection"
/>
<ol-tile-layer>
<ol-source-osm />
</ol-tile-layer>
<ol-fullscreen-control />
</ol-map>
</template>
<script setup>
import { ref } from "vue";
const center = ref([40, 40]);
const projection = ref("EPSG:4326");
const zoom = ref(8);
</script>
<template>
<ol-map ref="map" style="height: 400px" :controls="[]">
<ol-view
ref="view"
:center="center"
:rotation="rotation"
:zoom="zoom"
:projection="projection"
/>
<ol-tile-layer>
<ol-source-osm />
</ol-tile-layer>
<ol-fullscreen-control />
</ol-map>
</template>
<script setup>
import { ref } from "vue";
const center = ref([40, 40]);
const projection = ref("EPSG:4326");
const zoom = ref(8);
</script>
Properties
className
- Type:
String
- Default:
ol-full-screen
label
- Type:
String
- Default:
\u2922
labelActive
- Type:
String
- Default:
\u00d7
activeClassName
- Type:
String
- Default:
ol-full-screen-true
inactiveClassName
- Type:
String
- Default:
ol-full-screen-false
tipLabel
- Type:
String
- Default:
Toggle full-screen
keys
- Type:
Boolean
- Default:
false
target
- Type:
Object
source
- Type:
Object