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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
| /*
| * @Author: Morpheus
| * @Date: 2021-07-05 16:31:54
| * @Last Modified by: Morpheus
| * @Last Modified time: 2021-07-12 15:11:51
| * menu-name 枪支实时定位
| */
| <template>
| <el-row class="morpheus-map-box">
| <el-col :span="24">
| <el-card>
| <div class="card-body">
| <Map ref="modalForm" />
| </div>
| </el-card>
| </el-col>
| </el-row>
| </template>
|
|
| <script>
| import gunPng from '@/assets/img/gun.png'
|
| export default {
| data () {
| return {
|
| }
| },
| created () {
|
| },
| mounted () {
|
| this.$refs.modalForm.addEntitys({
| LGTD: 115.860,
| LTTD: 28.710,
| name: '枪支位置'
| }, gunPng, 0.8, 'gunlayer', 'gunAddlayer');
|
| },
| methods: {
|
| },
| destroyed () {
|
| window.ol2d.removeLayer(this.gunAddlayer)
|
| },
| }
| </script>
|
| <style lang="scss" scoped>
| </style>
|
|