{"analyzedAt":"2022-10-25T08:22:40.638Z","collected":{"metadata":{"name":"@supermap/iclient-ol","scope":"supermap","version":"11.0.1","description":"@supermap/iclient-ol 是一套基于 OpenLayers 的云 GIS 网络客户端开发平台， 支持访问 SuperMap iServer / iEdge / iPortal / iManager / Online 的地图、服务和资源，为用户提供了完整专业的 GIS 能力， 同时提供了优秀的可视化功能。","keywords":["SuperMap","OpenLayers"],"date":"2022-10-24T08:09:31.695Z","author":{"name":"SuperMap"},"publisher":{"username":"supermap","email":"iclient@supermap.com"},"maintainers":[{"username":"supermap","email":"iclient@supermap.com"}],"repository":{"type":"git","url":"git+https://github.com/SuperMap/iClient-JavaScript.git"},"links":{"npm":"https://www.npmjs.com/package/%40supermap%2Ficlient-ol","homepage":"https://iclient.supermap.io","repository":"https://github.com/SuperMap/iClient-JavaScript","bugs":"https://github.com/SuperMap/iClient-JavaScript/issues"},"license":"Apache-2.0","dependencies":{"@turf/turf":"6.5.0","echarts":"4.9.0","mapv":"2.0.62","ol":"6.14.1","@supermap/iclient-common":"11.0.1","proj4":"2.8.0","canvg":"3.0.7","lodash.remove":"^4.7.0"},"releases":[{"from":"2022-09-25T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":2},{"from":"2022-07-27T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":2},{"from":"2022-04-28T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":4},{"from":"2021-10-25T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":5},{"from":"2020-10-25T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":9}],"readme":"# @supermap/iclient-ol\n\n@supermap/iclient-ol 是一套基于 OpenLayers 的云 GIS 网络客户端开发平台， 支持访问 SuperMap iServer / iEdge / iPortal / iManager / Online 的地图、服务和资源，为用户提供了完整专业的 GIS 能力， 同时提供了优秀的可视化功能。\n\n## 简介\n* 官网：[https://iclient.supermap.io](https://iclient.supermap.io)\n* 源码：[https://github.com/SuperMap/iClient-JavaScript/tree/master/src/openlayers](https://github.com/SuperMap/iClient-JavaScript/tree/master/src/openlayers)\n\n## 安装\n\n```\n npm install @supermap/iclient-ol\n```\n如果您使用的是 OpenLayers 4，请参考此[文档](https://www.npmjs.com/package/@supermap/iclient-openlayers/v/10.0.0)安装 SuperMap iClient for OpenLayers。\n\n## 开发\n\n在 HTML 文件中引入 CSS  文件\n\n```html\n<link href='https://iclient.supermap.io/web/libs/openlayers/6.1.1/ol.css' rel='stylesheet' />\n\n<link href='https://iclient.supermap.io/dist/ol/iclient-ol.min.css' rel='stylesheet' />\n```\n在 JS 文件中加入如下代码\n\n```js\nimport Map from 'ol/Map';\nimport View from 'ol/View';\nimport TileLayer from 'ol/layer/Tile';\nimport * as control from 'ol/control';    \nimport { Logo, TileSuperMapRest } from '@supermap/iclient-ol';\n\nvar url = \"https://iserver.supermap.io/iserver/services/map-world/rest/maps/World\";\nvar map = new Map({\n    target: 'map',\n    controls: control.defaults({attributionOptions: {collapsed: false}})\n        .extend([new Logo()]),\n    view: new View({\n        center: [0, 0],\n        zoom: 2,\n        projection: 'EPSG:4326'\n    })\n});\nvar layer = new TileLayer({\n    source: new TileSuperMapRest({\n        url: url,\n        wrapX: true\n    }),\n    projection: 'EPSG:4326'\n});\nmap.addLayer(layer);\n```\n\n## 示例\n [https://github.com/SuperMap/iClient-JavaScript/tree/master/examples/openlayers](https://github.com/SuperMap/iClient-JavaScript/tree/master/examples/openlayers)"},"npm":{"downloads":[{"from":"2022-10-24T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":96},{"from":"2022-10-18T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":242},{"from":"2022-09-25T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":677},{"from":"2022-07-27T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":2268},{"from":"2022-04-28T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":4395},{"from":"2021-10-25T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":8989}],"starsCount":0},"github":{"homepage":"https://iclient.supermap.io","starsCount":718,"forksCount":259,"subscribersCount":50,"issues":{"count":366,"openCount":21,"distribution":{"3600":7,"10800":15,"32400":15,"97200":37,"291600":26,"874800":43,"2624400":83,"7873200":77,"23619600":44,"70858800":16,"212576400":3},"isDisabled":false},"contributors":[{"username":"songyumeng","commitsCount":1138},{"username":"zhurc","commitsCount":318},{"username":"chenmeiyiSupermap","commitsCount":219},{"username":"liqian7","commitsCount":120},{"username":"tangqinGiser","commitsCount":119},{"username":"luoxiao-supermap","commitsCount":105},{"username":"Yuki-Zhao","commitsCount":76},{"username":"xilanhuaweidapao","commitsCount":66},{"username":"xiongjiaojiao","commitsCount":64},{"username":"zhushusun","commitsCount":57},{"username":"wuzhuorui5","commitsCount":49},{"username":"dependabot-preview[bot]","commitsCount":39},{"username":"jiangyan1018","commitsCount":38},{"username":"hhyu1","commitsCount":32},{"username":"yaoxiaoni1","commitsCount":30},{"username":"dependabot[bot]","commitsCount":24},{"username":"YOUYOUNG","commitsCount":23},{"username":"zhangjiangqiu","commitsCount":20},{"username":"huangqh","commitsCount":17},{"username":"acidgis","commitsCount":14},{"username":"yuzhiyao","commitsCount":14},{"username":"ahnan","commitsCount":12},{"username":"qiulinFV","commitsCount":12},{"username":"yang-mengyue","commitsCount":12},{"username":"MyShallowTime","commitsCount":10},{"username":"ChenPeng181007","commitsCount":10},{"username":"laiyuandong","commitsCount":9},{"username":"anyanru","commitsCount":4},{"username":"xiaorui324","commitsCount":4},{"username":"snyk-bot","commitsCount":4},{"username":"shanligang","commitsCount":3},{"username":"alanjin","commitsCount":3},{"username":"yuiung","commitsCount":2},{"username":"zzhf","commitsCount":2},{"username":"luozejin","commitsCount":2},{"username":"jinnanyang","commitsCount":2},{"username":"yulong77895","commitsCount":1},{"username":"fossabot","commitsCount":1},{"username":"zhang6685979","commitsCount":1},{"username":"supermap-gaoziyang","commitsCount":1},{"username":"bianxia","commitsCount":1}],"commits":[{"from":"2022-10-18T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":0},{"from":"2022-09-25T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":36},{"from":"2022-07-27T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":43},{"from":"2022-04-28T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":114},{"from":"2021-10-25T00:00:00.000Z","to":"2022-10-25T00:00:00.000Z","count":183}]},"source":{"files":{"readmeSize":1926,"testsSize":8323843,"hasChangelog":true},"badges":[{"urls":{"original":"https://img.shields.io/npm/v/@supermap/iclient-common.svg","shields":"https://img.shields.io/npm/v/@supermap/iclient-common.svg","content":"https://img.shields.io/npm/v/@supermap/iclient-common.json"},"info":{"service":"npm","type":"version","modifiers":{"type":"v"}}}],"linters":["editorconfig","eslint","prettier"],"outdatedDependencies":{"canvg":{"required":"3.0.7","stable":"4.0.1","latest":"4.0.1"},"echarts":{"required":"4.9.0","stable":"5.4.0","latest":"5.4.0"},"ol":{"required":"6.14.1","stable":"7.1.0","latest":"7.1.1-dev.1666640574913"}}}},"evaluation":{"quality":{"carefulness":0.9199999999999999,"tests":0.3,"health":0.5,"branding":0.55},"popularity":{"communityInterest":1068,"downloadsCount":756,"downloadsAcceleration":-0.567865296803653,"dependentsCount":0},"maintenance":{"releasesFrequency":1,"commitsFrequency":1,"openIssues":1,"issuesDistribution":0.5721661090929788}},"score":{"final":0.6587325273730642,"detail":{"quality":0.8182646216868235,"popularity":0.1865269768360666,"maintenance":0.9941962827839825}}}