UNPKG

@xuehongbo/map-craft-js

Version:

MapCraftJS 是一个功能强大且灵活的开源 JavaScript 库,旨在简化互动地图的创建和操作。使用 MapCraftJS,开发者可以轻松地将动态地图功能集成到应用程序中,为用户提供根据自定义配置查看、注释和互动的地图体验。(开发中!!!)

17 lines (14 loc) 394 B
import MapAdapter from "./adapter/MapAdapter.js"; class MapClient extends MapAdapter{ constructor(mapConfig, options) { super(mapConfig, options); this.map = this.adapter.map; } addMarker(options) { return this.adapter.addMarker(options); } drawPolyline(points) { return this.adapter.drawPolyline(points); } } export default MapClient;