1.0.12 • Published 5 years ago
@lightmap/lightmap-ui v1.0.12
lightmap
base-map
edit-layer
Installation
npm install @lightmap/lightmap-ui -S
Import
main.js中
import lightmapUI from '@lightmap/lightmap-ui';
Vue.use( lightmapUI )
Usage
Usage base-map
Options of base-map
Option | Type | Description |
---|---|---|
styleType | Number | Default is 1, display vertical, styleType is 2, display horizontal |
baseurl | String | Map path |
loadbasemapurl | Funtion | Click the event triggered by each base image and return the parameter: Map path(url) |
|
Usage in components
<template>
<div id="app">
<base-map :basemapurl="this.url" @loadbasemapurl="loadbasemapurl" :styleType='styleType'></base-map>
</div>
</template>
<script>
import { baseMap } from '@lightmap/lightmap-ui'
export default {
name: 'app',
data(){
return {
url:'',
styleType:2
}
},
methods:{
loadbasemapurl(url){
alert(url)
}
}
}
</script>