# vue-lands-tile-map
**Repository Path**: coding-365/vue-lands-tile-map
## Basic Information
- **Project Name**: vue-lands-tile-map
- **Description**: Ethereum provider solution for metamask/walletconnect Wallets
- **Primary Language**: NodeJS
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-02-16
- **Last Updated**: 2022-04-28
## Categories & Tags
**Categories**: Uncategorized
**Tags**: Vue
## README
VUE Lands Tile Map Component
[![npm][npm]][npm-url]
[![node][node]][node-url]

### NFT Metaverse Lands Vue Tile Map Component
## demo
https://daudxu.github.io/vue-lands-tile-map/
## Preview

## Installation
```
npm install vue-lands-tile-map
```
## Usage
### Import
```
import VueLandsTileMap from 'vue-lands-tile-map'
Vue.use(VueLandsTileMap);
```
### demo
```
{{ msg }}
Current coordinates {{x}},{{y}}
```
具体使用可参考[该文件](../../examples/landsTileMap.vue)。
## Options
| 配置项 | 值类型 | 描述 |
| ----------------------- | -------- | ----------------------------------------------------------------------------- |
| tileMapMapmatrix | Array | lands tile Map Mapmatrix |
| tiledDigitalColormap | Array | Colors corresponding to digital tile maps |
| canvasWidth | Number | canvas width,default `window.innerWidth` |
| canvasHeight | Number | canvas height,default `window.innerHeight` |
| tileSize | Number | tile map Size,default 32 |
| tileScale | Number | tile map Scale,default 1 |
| startPaintingX | Number | The horizontal coordinate of the starting point of the drawing,default 0 |
| startPaintingY | Number | The ordinate of the starting point of the drawing,default 0 |
| gridLineColor | String | grid Line Color,default '#c8efd4' |
| gridDefaultTileColor | String | grid Default Tile Color,default '#ffffff' |
| handleClickTile | function | Click to return to coordinates Returns the coordinates and click event object |
| handleClickAssignRender | function | render canvas view |
| blockCoverage | function | Merge large block matrices |
## Features
- [X] Built for Ethereum using [Web3](https://github.com/ethereum/web3.js/).
- [X] Implements [Graph Protocol](https://github.com/graphprotocol) to read blockchain.
## Changelog
### 2022.02.17
> v0.0.1 \* Matrix, color block, drag
[npm]: https://img.shields.io/npm/v/postcss-load-config.svg
[npm-url]: https://npmjs.com/package/postcss-load-config
[node]: https://img.shields.io/node/v/postcss-load-plugins.svg
[node-url]: https://nodejs.org/