1.2.0 • Published 2 years ago

joymap-js v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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>