# 例子

<template>
  <demo-view>
    <template v-slot:control>
      <a-form-item label="hawkeye.isOpen">
        <a-checkbox v-model="hawkeye.isOpen" />
      </a-form-item>
    </template>
    <template v-slot:map-content>
      <amap-map-type />
      <amap-control-bar
        :position="{
          top: '10px',
          left: '10px',
        }"
      />
      <amap-hawk-eye :isOpen.sync="hawkeye.isOpen" show-button />
      <amap-scale position="LB" />
      <amap-tool-bar
        :position="{
          top: '110px',
          left: '40px',
        }"
      />
    </template>
  </demo-view>
</template>

<script>
export default {
  data() {
    return {
      hawkeye: {
        isOpen: true,
      },
    };
  },
};
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38