Skip to content

Commit f2cd281

Browse files
committed
docs(ol-full-screen-control): use correct element / selector for OlFullScreenControl
closes #439
1 parent 2b32816 commit f2cd281

File tree

6 files changed

+33
-11
lines changed

6 files changed

+33
-11
lines changed

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export const config: UserConfig = {
219219
link: "/componentsguide/mapcontrols/contextmenu/",
220220
},
221221
{
222-
text: "ol-fullscreen-control",
222+
text: "ol-full-screen-control",
223223
link: "/componentsguide/mapcontrols/fullscreen/",
224224
},
225225
{

docs/componentsguide/mapcontrols/fullscreen/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ol-fullscreen-control
1+
# ol-full-screen-control
22

33
> A Fullscreen control for OpenLayers.
44
@@ -7,10 +7,10 @@
77
## Demo
88

99
<script setup lang="ts">
10-
import FullscreenControlDemo from "@demos/FullscreenControlDemo.vue"
10+
import FullScreenControlDemo from "@demos/FullScreenControlDemo.vue"
1111
</script>
1212
<ClientOnly>
13-
<FullscreenControlDemo />
13+
<FullScreenControlDemo />
1414
</ClientOnly>
1515

1616
## Setup
@@ -19,13 +19,13 @@ import FullscreenControlDemo from "@demos/FullscreenControlDemo.vue"
1919

2020
## Usage
2121

22-
| Plugin Usage | Explicit Import |
23-
| ------------------------- | :---------------------------------: |
24-
| `<ol-fullscreen-control>` | `<MapControls.OlFullScreenControl>` |
22+
| Plugin Usage | Explicit Import |
23+
| -------------------------- | :---------------------------------: |
24+
| `<ol-full-screen-control>` | `<MapControls.OlFullScreenControl>` |
2525

2626
::: code-group
2727

28-
<<< ../../../../src/demos/FullscreenControlDemo.vue
28+
<<< ../../../../src/demos/FullScreenControlDemo.vue
2929

3030
:::
3131

src/demos/AppDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</ol-control-bar>
7171

7272
<ol-mouse-position-control />
73-
<ol-fullscreen-control />
73+
<ol-full-screen-control />
7474
<ol-overview-map-control>
7575
<ol-tile-layer>
7676
<ol-source-osm />
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<template>
2+
<ol-map ref="map" style="height: 400px" :controls="[]">
3+
<ol-view
4+
ref="view"
5+
:center="center"
6+
:zoom="zoom"
7+
:projection="projection"
8+
/>
9+
10+
<ol-tile-layer>
11+
<ol-source-osm />
12+
</ol-tile-layer>
13+
<ol-full-screen-control />
14+
</ol-map>
15+
</template>
16+
17+
<script setup lang="ts">
18+
import { ref } from "vue";
19+
const center = ref([40, 40]);
20+
const projection = ref("EPSG:4326");
21+
const zoom = ref(8);
22+
</script>

src/demos/FullscreenControlDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<ol-tile-layer>
1111
<ol-source-osm />
1212
</ol-tile-layer>
13-
<ol-fullscreen-control />
13+
<ol-full-screen-control />
1414
</ol-map>
1515
</template>
1616

tests/controls.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test.describe("ol-context-menu-control", () => {
3636
});
3737
});
3838

39-
test.describe("ol-fullscreen-control", () => {
39+
test.describe("ol-full-screen-control", () => {
4040
test("should render", async ({ page }) => {
4141
const map = new MapPage(page);
4242
await map.goto("/componentsguide/mapcontrols/fullscreen/");

0 commit comments

Comments
 (0)