@lightmap/base-map

1.0.4 • Public • Published

lightmap

base-map

Installation

npm install @lightmap/base-map -S

Import

import baseMap from '@lightmap/base-map'

Vue.use( baseMap )

Usage

Options of base-map

Option Description Type
styleType Default is 1, display vertical, styleType is 2, display horizontal Number
baseurl Map path String
loadbasemapurl Click the event triggered by each base image and return the parameter: Map path(url) Funtion

|

Use in components

<template>
  <div id="app">
    <base-map :basemapurl="this.url" @loadbasemapurl="loadbasemapurl" :styleType='styleType'></base-map>
  </div>
</template>

<script>
export default {
  name: 'app',
  data(){
    return {
      url:'',
      styleType:2
    }
  },
  methods:{
    loadbasemapurl(url){
      alert(url)
    }
  }
}
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i @lightmap/base-map

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

189 kB

Total Files

27

Last publish

Collaborators

  • chen1115
  • light4d
  • npmzhaozhen