{"analyzedAt":"2022-07-07T06:56:03.331Z","collected":{"metadata":{"name":"ol-tilecache","scope":"unscoped","version":"7.0.0","description":"OpenLayers tile url function to load tile seeded with TileCache url scheme","keywords":["ol","openlayers","tilecache","ol-tilecache","tile url function","map","mapping","ol plugins","openlayers plugins"],"date":"2020-06-28T17:29:30.221Z","author":{"name":"Vladimir Vershinin","email":"ghettovoice@gmail.com","username":"ghettovoice"},"publisher":{"username":"ghettovoice","email":"ghettovoice@gmail.com"},"maintainers":[{"username":"ghettovoice","email":"ghettovoice@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/ghettovoice/ol-tilecache.git"},"links":{"npm":"https://www.npmjs.com/package/ol-tilecache","homepage":"https://github.com/ghettovoice/ol-tilecache","repository":"https://github.com/ghettovoice/ol-tilecache","bugs":"https://github.com/ghettovoice/ol-tilecache/issues"},"license":"MIT","dependencies":{"@babel/runtime":"^7.10.3"},"devDependencies":{"@babel/core":"^7.10.3","@babel/plugin-proposal-function-bind":"^7.10.1","@babel/plugin-proposal-optional-chaining":"^7.10.3","@babel/plugin-transform-runtime":"^7.10.3","@babel/preset-env":"^7.10.3","@rollup/plugin-babel":"^5.0.4","@rollup/plugin-commonjs":"^13.0.0","@rollup/plugin-node-resolve":"^8.1.0","@rollup/plugin-replace":"^2.3.3","babel-loader":"^8.1.0","babel-plugin-istanbul":"^6.0.0","chai":"^4.2.0","coveralls":"^3.1.0","cross-env":"^7.0.2","css-loader":"^3.6.0","html-webpack-plugin":"^4.3.0","karma":"^5.1.0","karma-chai":"^0.1.0","karma-coverage":"^2.0.2","karma-es6-shim":"^1.0.0","karma-mocha":"^2.0.1","karma-phantomjs-launcher":"^1.0.4","karma-sinon":"^1.0.5","karma-sinon-chai":"^2.0.2","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"0.0.32","karma-webpack":"^4.0.2","lodash":"^4.17.15","mocha":"^8.0.1","mocha-phantomjs":"^4.1.0","ol":"^6.3","phantomjs-prebuilt":"^2.1.16","rollup":"^2.18.1","rollup-plugin-terser":"^6.1.0","sinon":"^9.0.2","sinon-chai":"^3.5.0","style-loader":"^1.2.1","webpack":"^4.43.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.0","webpack-merge":"^4.2.2"},"peerDependencies":{"ol":"^6.0.0"},"releases":[{"from":"2022-06-07T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":1},{"from":"2022-04-08T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":1},{"from":"2022-01-08T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":1},{"from":"2021-07-07T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":1},{"from":"2020-07-07T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":1}],"hasTestScript":true,"hasSelectiveFiles":true,"readme":"[![Build Status](https://travis-ci.org/ghettovoice/ol-tilecache.svg?branch=master)](https://travis-ci.org/ghettovoice/ol-tilecache)\n[![Coverage Status](https://coveralls.io/repos/github/ghettovoice/ol-tilecache/badge.svg?branch=master)](https://coveralls.io/github/ghettovoice/ol-tilecache?branch=master)\n[![GitHub tag](https://img.shields.io/github/tag/ghettovoice/ol-tilecache.svg)](https://github.com/ghettovoice/ol-tilecache/releases)\n[![view on npm](http://img.shields.io/npm/v/ol-tilecache.svg)](https://www.npmjs.org/package/ol-tilecache)\n[![License](https://img.shields.io/github/license/ghettovoice/ol-tilecache.svg)](https://github.com/ghettovoice/ol-tilecache/blob/master/LICENSE)\n\n# TileCache url function for OpenLayers\n\nAllows create custom [`ol.TileUrlFunctionType`](http://openlayers.org/en/latest/apidoc/ol.html#.TileUrlFunctionType) to load tiles \nseeded with [TileCache](http://tilecache.org/).\n\n## Installation\n\nInstall it with NPM (**recommended**):\n\n```shell\n# ES6 version for bundling with Webpack, Rollup and etc.\nnpm install ol ol-tilecache\n```\n\n```js\n// Use as ES2015 module (based on NPM package `ol`)\nimport Map from 'ol/Map'\n...\nimport * as TileCacheUrlFn from 'ol-tilecache'\n// or only what you need\nimport { createTileUrlFunction } from 'ol-tilecache'\n```\n\nOr add from CDN:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.0.0/build/ol.js\"></script>\n<script src=\"https://unpkg.com/ol-tilecache@latest/dist/ol-tilecache.umd.js\"></script>\n<script>\n  // plugin exports global variable TileCacheUrlFn\n  // in addition it also exported to `ol.tileCacheUrlFn` field (for backward compatibility).\n</script>\n```\n\n## Usage\n\nUsage same as standard OpenLayers tile url functions.\n\n### Members\n\n#### createTileUrlFunction\n**Arguments**\n\n* `url : string` _URL template_\n* `tileGrid : ol.tilegrid.TileGrid` _Custom tile grid. Default is EPSG:3857 x/y/z grid_\n    \n**Returns**: `ol.TileUrlFunctionType`\n\nAvailable URL placeholders:\n```\nz | 0z - zoom level (simple number or padded with zero)\nx1, x2, x3 - X axis index parts (remnant from dividing the tile X index on 10^9 broken down by 3 digits)\ny1, y2, y3 - Y axis index parts (remnant from dividing the tile Y index on 10^9 broken down by 3 digits)\n-y1, -y2, -y3 - inverted Y axis index parts (remnant from dividing the tile Y index on 10^9 broken down by 3 digits)\n```\n    \n### Example usage:\n\n```js\nimport Map from 'ol/Map'\nimport View from 'ol/View'\nimport TileLayer from 'ol/layer/Tile'\nimport XyzSource from 'ol/source/XYZ'\nimport { createTileUrlFunction } from 'ol-tilecache'\n\nconst map = new Map({\n  target: 'map',\n  view: new View({\n    projection: 'EPSG:3857',\n    center: [ 4189972.14, 7507950.67 ],\n    zoom: 5\n  }),\n  layers: [\n    new TileLayer({\n      source: new XyzSource({\n        tileUrlFunction: createTileUrlFunction('http://{a-z}.tiles.org/{0z}/{x1}/{x2}/{x3}/{-y1}/{-y2}/{-y3}.png')\n      })\n    })\n  ]\n})\n\n```\n\n### Build\n\n```bash\ngit clone https://github.com/ghettovoice/ol-tilecache.git\nnpm install\n# build\nnpm run build\n# run test app\nnpm start\n# run unit tests\nnpm test\n```\n\n## License\n\nMIT (c) 2016-2020, Vladimir Vershinin"},"npm":{"downloads":[{"from":"2022-07-06T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":504},{"from":"2022-06-30T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":2686},{"from":"2022-06-07T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":12336},{"from":"2022-04-08T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":32574},{"from":"2022-01-08T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":66626},{"from":"2021-07-07T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":139473}],"starsCount":1},"github":{"starsCount":8,"forksCount":2,"subscribersCount":2,"issues":{"count":6,"openCount":1,"distribution":{"3600":0,"10800":0,"32400":1,"97200":1,"291600":2,"874800":0,"2624400":0,"7873200":0,"23619600":1,"70858800":1,"212576400":0},"isDisabled":false},"contributors":[{"username":"ghettovoice","commitsCount":62}],"commits":[{"from":"2022-06-30T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":0},{"from":"2022-06-07T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":0},{"from":"2022-04-08T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":0},{"from":"2022-01-08T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":0},{"from":"2021-07-07T00:00:00.000Z","to":"2022-07-07T00:00:00.000Z","count":0}],"statuses":[{"context":"coverage/coveralls","state":"success"},{"context":"continuous-integration/travis-ci/push","state":"success"}]},"source":{"files":{"readmeSize":3166,"testsSize":4451},"badges":[{"urls":{"original":"https://travis-ci.org/ghettovoice/ol-tilecache.svg?branch=master","service":"https://api.travis-ci.org/ghettovoice/ol-tilecache.svg?branch=master","shields":"https://img.shields.io/travis/ghettovoice/ol-tilecache/master.svg","content":"https://img.shields.io/travis/ghettovoice/ol-tilecache/master.json"},"info":{"service":"travis","type":"build","modifiers":{"branch":"master"}}},{"urls":{"original":"https://coveralls.io/repos/github/ghettovoice/ol-tilecache/badge.svg?branch=master","service":"https://coveralls.io/repos/github/ghettovoice/ol-tilecache/badge.svg?branch=master","shields":"https://img.shields.io/coveralls/ghettovoice/ol-tilecache/master.svg","content":"https://img.shields.io/coveralls/ghettovoice/ol-tilecache/master.json"},"info":{"service":"coveralls","type":"coverage","modifiers":{"branch":"master"}}},{"urls":{"original":"http://img.shields.io/npm/v/ol-tilecache.svg","shields":"https://img.shields.io/npm/v/ol-tilecache.svg","content":"https://img.shields.io/npm/v/ol-tilecache.json"},"info":{"service":"npm","type":"version","modifiers":{"type":"v"}}}],"linters":["editorconfig"],"coverage":0.79}},"evaluation":{"quality":{"carefulness":0.9199999999999999,"tests":0.9684999999999999,"health":1,"branding":0.44999999999999996},"popularity":{"communityInterest":14,"downloadsCount":10858,"downloadsAcceleration":4.277207001522072,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":1,"issuesDistribution":0.9}},"score":{"final":0.6714900415892366,"detail":{"quality":0.9843904436993752,"popularity":0.07487335520512496,"maintenance":0.9999063833075152}}}