webgis-api
TypeScript icon, indicating that this package has built-in type declarations

9.2.63-rc • Public • Published

webgis-api

webgis-api 是一套基于openlayer 封装而成的WebGis应用框架API,提供了2D地图模式,满足绝大多数开发者对地图展示、地图自定义、图层加载、点标记添加、矢量图形绘制的需求,同时也提供了 POI 搜索、路线规划、地理编码、行政区查询、定位等众多开放服务接口。

Getting Started

npm install webgis-api

Import just what you need for your application:

import Map from 'webgis-api/Map';
import View from 'webgis-api/View';
import TileLayer from 'webgis-api/layer/Tile';
import XYZ from 'webgis-api/source/XYZ';

new Map({
  target: 'map',
  layers: [
    new TileLayer({
      source: new XYZ({
        url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png'
      })
    })
  ],
  view: new View({
    center: [0, 0],
    zoom: 2
  })
});

声明

本库(以下简称 "库")是基于 OpenLayers 构建的,旨在提供额外的功能和改进。

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
9.2.63-rc0latest

Version History

VersionDownloads (Last 7 Days)Published
9.2.63-rc0
9.2.62-rc0
9.2.5-dev0

Package Sidebar

Install

npm i webgis-api

Weekly Downloads

0

Version

9.2.63-rc

License

BSD-2-Clause

Unpacked Size

11.6 MB

Total Files

1075

Last publish

Collaborators

  • linrunlong