lightmap-ui

1.0.5 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i lightmap-ui

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

1.07 MB

Total Files

18

Last publish

Collaborators

  • chen1115