tmap-component
v1.0.1
Published
一个基于天地图的API封装的vue2组件
Downloads
4
Readme
TMap是基于天地图API封装的vue版
申请API KEY
注册账号后申请key即可。
安装
npm install tmap-component
快速上手
<template>
<div>
<t-map map-key="0dc07d038e7ee6518532101750a96c5a" width="100%" height="100vh" />
</div>
</template>
<script>
import TMap from '@/components/TMap/TMap.vue';
export default {
name: 'Home',
components: {
TMap,
},
};
</script>
上面的key可以正常调用,但是日调用量受限,需要开发者自行申请key。