-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(OlScalelineControl): support all props with defaults from OpenLa…
…yers
- Loading branch information
1 parent
d92a7fd
commit 9451194
Showing
8 changed files
with
29 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
<template> | ||
<form> | ||
<fieldset> | ||
<label for="checkbox">Show as bar</label> | ||
<input type="checkbox" id="checkbox" v-model="showAsBar" /> | ||
</fieldset> | ||
</form> | ||
<ol-map style="height: 400px" :controls="[]"> | ||
<ol-view :center="center" :zoom="zoom" :projection="projection" /> | ||
|
||
<ol-tile-layer> | ||
<ol-source-osm /> | ||
</ol-tile-layer> | ||
<ol-scaleline-control /> | ||
<ol-scaleline-control :bar="showAsBar" /> | ||
</ol-map> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from "vue"; | ||
const center = ref([40, 40]); | ||
const projection = ref("EPSG:4326"); | ||
const zoom = ref(8); | ||
const showAsBar = ref(false); | ||
</script> |
Binary file removed
BIN
-259 KB
tests/__screenshots__/controls.test.ts/ol-scaleline-control-should-render-1.png
Binary file not shown.
Binary file added
BIN
+236 KB
...enshots__/controls.test.ts/ol-scaleline-control-should-render-as-ScaleBar-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+236 KB
...nshots__/controls.test.ts/ol-scaleline-control-should-render-as-ScaleLine-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters