lightmap-ui
v1.0.5
Published
A Component Library for Vue.js.
Downloads
1
Readme
lightmap
base-map
edit-layer
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>