Open wh-Cc opened 6 months ago
<template> <div class="mapDiv"> <tdt-map :center="state.center" :zoom="state.zoom" :mapStyle="state.mapStyle"></tdt-map> </div> </template> <script setup> import { reactive, watch } from "vue"; import { TdtMap } from "vue-tianditu"; const state = reactive({ mapStyle: "black", center: [130.000000, 38.000000], zoom: 4 });