tongmap-js

0.2.25 • 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 tongmap-js

Weekly Downloads

262

Version

0.2.25

License

MIT

Unpacked Size

7.44 MB

Total Files

94

Last publish

Collaborators

  • flanker521