GithubHelp home page GithubHelp logo

xianaiwen / vue2-googlemap Goto Github PK

View Code? Open in Web Editor NEW
32.0 1.0 7.0 1.52 MB

基于 Vue 2.x 和google地图组件

Home Page: https://xianaiwen.github.io/vue2-googlemap

Vue 79.07% JavaScript 19.57% HTML 1.36%
googlemap javascript vue2

vue2-googlemap's Introduction

vue2-googlemap

基于 Vue 2.x 和google地图的地图组件

Install

npm install -S vue2-googlemap

Usage

import Vue from 'vue';
import vueGooglemap from 'vue2-googlemap';

Vue.use(vueGooglemap);

/*
  The api key is required.
  If you want to ignore the browser's language setting, you can set the language parameter.
  Suggest to use the release version. v=3 by default.
*/
vueGooglemap.initGooglemap({
  key: 'your GOOGLE_MAPS_API_KEY',
  language: 'zh-CN',
  v: '3',
})

Components

Map

<vue-googlemap :center="center" :zoom="zoom" :controls="controls" :events="events" ></vue-googlemap>

Marker

<vue-googlemap-marker :position="position" :icon="icon" :events="events" ></vue-googlemap-marker>

infoWindow

<vue-googlemap-infoWindow :position="position" :events="events" @change="change" ></vue-googlemap-infoWindow>

Circle

<vue-googlemap-circle :center="center" :radius="radius" :events="events" @change="change" editable ></vue-googlemap-circle>

Rectangle

<vue-googlemap-rectangle :bounds="bounds" :events="events" @change="change" editable ></vue-googlemap-rectangle>

Polyline

<vue-googlemap-polyline :path="path" :events="events" @change="change" editable ></vue-googlemap-polyline>

Polygon

<vue-googlemap-polygon :paths="paths" :events="events" @change="change" editable ></vue-googlemap-polygon>

License

This project is covered under the MIT License. Feel free to use it wherever you like.

vue2-googlemap's People

Contributors

xianaiwen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vue2-googlemap's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.