# base-map

> base-map

Latest version **1.0.2** (published 2019-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install base-map
pnpm add base-map
yarn add base-map
bun add base-map
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-08-14 |
| First published | 2019-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 190.4 KB |
| Known vulnerabilities | 0 (+26 in 2 direct dependencies) |
| Install scripts | no |
| Author | light4d |
| Maintainers | chen1115 |

## Links

- npm: https://www.npmjs.com/package/base-map
- npm.io page: https://npm.io/package/base-map

## Dependencies (7)

- [vue](https://npm.io/package/vue.md) ^2.5.11
- [axios](https://npm.io/package/axios.md) ^0.19.0
- [xe-utils](https://npm.io/package/xe-utils.md) ^1.9.8
- [element-ui](https://npm.io/package/element-ui.md) ^2.11.1
- [json-templater](https://npm.io/package/json-templater.md) ^1.2.0
- [uppercamelcase](https://npm.io/package/uppercamelcase.md) ^3.0.0
- [vue-element-extends](https://npm.io/package/vue-element-extends.md) ^1.2.22

## Recent versions

- 1.0.2 (latest) — 2019-08-14
- 1.0.1 — 2019-08-14
- 1.0.0 — 2019-08-13

## README

# lightmap

> base-map

# Installation
```
npm install 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
```html
<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>
```

---
_Source: https://npm.io/package/base-map · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
