joymap-js

1.2.0 • Public • Published

tongMap-JS

A 2D Map component with Openlayer

Use Setup

# 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>

Readme

Keywords

Package Sidebar

Install

npm i joymap-js

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

8.33 MB

Total Files

32

Last publish

Collaborators

  • flanker521