1.0.2 • Published 6 years ago
base-map v1.0.2
lightmap
base-map
Installation
npm install base-map -SImport
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>