ol-attribution-control
A Attribution 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-attribution-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-attribution-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-attribution
target
- Type:
HTMLElement
collapsible
- Type:
Boolean
collapsed
- Type:
Boolean
- Default:
true
tipLabel
- Type:
String
- Default:
Attributions
label
- Type:
String
- Default:
i
expandClassName
- Type:
String
- Default:
ol-attribution-expand
collapseLabel
- Type:
String
- Default:
»
collapseClassName
- Type:
String
- Default:
ol-attribution-collapse
render
- Type:
Function