vue3-maptalks
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

此组件诞生于需要加载离线地图的项目

  • 基于 vue3 组合式 API
  • 使用 TypeScript 编写
  • 基于 maptalks 封装

开始

安装

npm i vue3-maptalks --save

使用

maptalks-options 可选属性来自于 maptalks 官方文档

<script setup lang="ts">
import { onMounted, ref, type Ref } from "vue";
import { MapLoader, type MapLoaderInstance } from "vue3-maptalks";

const center: Ref<[number, number]> = ref([0, 0]);
</script>

<template>
  <MapLoader ref="mapRef" :maptalks-options="{ center, zoom: 1 }"></MapLoader>
</template>

离线地图

需要结合离线地图下载工具和部署静态瓦片托管服务一整套解决方案来使用,目前兼容高德、腾讯、百度

交流

欢迎添加微信(reinerlau)交流

Package Sidebar

Install

npm i vue3-maptalks

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • reinerlau