1.0.15 • Published 10 months ago
@vtx/ol-map-mobile v1.0.15
ol-map-mobile
基于 openlayers 的 uni 移动端组件库
使用 Yarn 安装
yarn add @vtx/ol-map-mobile -S
使用方法
pages.json
配置 easycom 规则(按需引入)
// pages.json
{
"easycom": {
"^ol-(.*)": "@vtx/ol-map-mobile/components/ol-$1/ol-$1.vue"
},
// 此为本身已有的内容
"pages": [
// ......
]
}
配置 easycom 规则后,自动按需引入,无需 import
组件,直接引用即可。
<template>
<ol-map></ol-map>
</template>