migrate map sheet to composition API and typescript

This commit is contained in:
MaysWind
2025-01-05 17:56:58 +08:00
parent fb8fbbcf70
commit 4f51480af9
3 changed files with 44 additions and 35 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ const finalMapStyle = computed<Record<string, unknown>>(() => {
return styles;
});
function init() {
function initMapView() {
let isFirstInit = false;
let centerChanged = false;
@@ -112,6 +112,6 @@ function init() {
}
defineExpose({
init
initMapView
});
</script>