vue-baidu-map

用于 Vue 2.x 的百度地图组件。「Baidu Map components for Vue 2.x」

Github stars Tracking Chart

VUE BAIDU MAP

基于 VUE 2.x 的百度地图组件

语言

文档

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

开始

安装

npm i --save vue-baidu-map

初始化

'vue'
'vue-baidu-map'

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  'YOUR_APP_KEY'
})

使用

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

<style>
/* 地图容器必须设置宽和高属性 */
.map {
  px;
  px;
}
</style>

贡献

贡献指南

协议

MIT 许可证

版权所有 (c) 2016至今, Dafrok o.o@mug.dog

Overview

Name With OwnerDafrok/vue-baidu-map
Primary LanguageVue
Program languageJavaScript (Language Count: 2)
PlatformCross-platform, Web browsers
License:MIT License
Release Count0
Created At2017-01-11 03:53:13
Pushed At2023-01-12 08:24:55
Last Commit At2020-10-12 11:30:11
Stargazers Count2.4k
Watchers Count60
Fork Count434
Commits Count594
Has Issues Enabled
Issues Count982
Issue Open Count179
Pull Requests Count16
Pull Requests Open Count32
Pull Requests Close Count12
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

VUE BAIDU MAP

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

To the top