Vue baidu map

Baidu Map Component for Vue 2.0

Version: 0.21.22 Updated: 06/24/2019

By: Dafrok License: MIT

Downloads Last 30 Days: 10k

Install

npm i vue-baidu-map
yarn add vue-baidu-map

Repository: https://github.com/Dafrok/vue-baidu-map

CDNs

bundle.run: https://bundle.run/vue-baidu-map

jsDelivr: https://cdn.jsdelivr.net/npm/vue-baidu-map

unpkg: https://unpkg.com/vue-baidu-map

VUE BAIDU MAP

Baidu Map components for Vue 2.x

npm Travis Package Quality npm license

Languages

Documentation

https://dafrok.github.io/vue-baidu-map

Get Start

Installation

npm i --save vue-baidu-map

Initialization

import Vue from 'vue'
import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
  /* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
  ak: 'YOUR_APP_KEY'
})

Usage

<template>
  <baidu-map class="map">
  </baidu-map>
</template>

<style>
/* The container of BaiduMap must be set width & height. */
.map {
  width: 100%;
  height: 300px;
}
</style>

Contributing

Contributing Guide

License

MIT License

Copyright (c) 2016-present, Dafrok o.o@mug.dog

Categories: Vue js