# tongMap-JS

> A 2D Map component with Openlayer

## Use Setup

``` bash
# install
 npm install tongmap-js --save

#  options
import TMap from 'tongmap-js'
let map = new TMap.map({
        url: 'https://services.arcgisonline.com/arcgis/rest/services/' +
          'ESRI_Imagery_World_2D/MapServer/tile/{z}/{y}/{x}',
        center: [0, 0],
        projection: 'EPSG:4326',
        zoom: 2,
        minZoom: 2,
        target: 'map'
      })

# dom 组件使用
<div id=map></div>
```
