wangzhibo
2025-10-23 cad64c1de2c45856b0774933c5801b05b64984e8
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<template>
    <view>
        <amap v-if="mapType === 'amap'" :disable="disable" :longitude="longitude" :latitude="latitude" :mapKey="mapKey"
            :marker="marker" @confirm="confirm" @changeMarker="changeMarker" :polygons="polygons"
            :isPolygons="isPolygons" :isCustomBar="isCustomBar" :top='top'>
        </amap>
    </view>
</template>
 
<script>
    import amap from '../amap/amap.vue';
 
    export default {
        name: 'atl-map',
        props: {
            longitude: {
                type: String,
                default: ''
            },
            latitude: {
                type: String,
                default: ''
            },
            mapKey: {
                require: true,
                type: String,
                default: ''
            },
            marker: {
                type: Object,
                default: () => {}
            },
            mapType: {
                type: String,
                default: 'tmap'
            },
            disable: {
                type: Boolean,
                default: false
            },
            isPolygons: {
                type: Boolean,
                default: false
            },
            polygons: {
                type: Array,
                default: () => []
            },
            top: {
                type: [String, Number],
                default: 30
            },
            isCustomBar: {
                type: Boolean,
                default: false
            }
        },
        components: {
            amap
        },
        data() {
            return {};
        },
        created() {
            // console.log(11, this.$props);
        },
        methods: {
            confirm(e) {
                this.$emit('confirm', e);
            },
            changeMarker(e) {
                this.$emit('changeMarker', e);
            }
        }
    };
</script>
 
<style lang="scss" scoped></style>