{"id":13675286,"url":"https://github.com/zzcyrus/maptalks.IdwLayer","last_synced_at":"2025-04-28T23:30:25.424Z","repository":{"id":87704622,"uuid":"107528881","full_name":"zzcyrus/maptalks.IdwLayer","owner":"zzcyrus","description":"A small maptalks plugin to generate an IDW layer","archived":false,"fork":false,"pushed_at":"2017-10-23T08:53:21.000Z","size":55,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-11T16:41:29.437Z","etag":null,"topics":["idw","maptalks","maptalks-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zzcyrus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-19T09:53:58.000Z","updated_at":"2023-01-29T05:56:33.000Z","dependencies_parsed_at":"2024-01-17T05:16:22.673Z","dependency_job_id":"cc036a36-76d5-42a4-b216-b74aed25aed1","html_url":"https://github.com/zzcyrus/maptalks.IdwLayer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzcyrus%2Fmaptalks.IdwLayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzcyrus%2Fmaptalks.IdwLayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzcyrus%2Fmaptalks.IdwLayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzcyrus%2Fmaptalks.IdwLayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzcyrus","download_url":"https://codeload.github.com/zzcyrus/maptalks.IdwLayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251404405,"owners_count":21584088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["idw","maptalks","maptalks-plugin"],"created_at":"2024-08-02T12:00:37.283Z","updated_at":"2025-04-28T23:30:25.038Z","avatar_url":"https://github.com/zzcyrus.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# maptalks-plugin-IdwLayer\n\nA small maptalks plugin to generate an IDW interpolated map, based on [Leaflet.idw](https://github.com/JoranBeaufort/Leaflet.idw) by JoranBeaufort\n\n![](https://raw.githubusercontent.com/zzcyrus/readme_demo/master/img/maptalks.idwlayer.demo.png)\n\n## Examples\n\n[Demo](http://kael.top/maptalks.IdwLayer/demo/demo.html)\n\n## Install\n\nJust include the maptalks-IdwLayer.js/maptalks-Idwlayer.min.js from the dist folder:\n```\n\u003cscript src=\"maptalks-IdwLayer.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```js\nvar idw = new maptalks.IdwLayer('idw', data, {\n    opacity: 0.3,\n    cellSize: 10,\n    exp: 2,\n    max: 1200\n}).addTo(map);\n```\n\n\n## `Constructor`\n```javascript\nnew maptalks.IdwLayer(id, data, options)\n```\n\n* id **String** layer id\n* data **Array[]** layer data: [[x, y, value], [x, y, value]..]\n* options **Object** options\n    * max **Number** maximum point values (1 by default) \n    * exp  **Number** exponent used for weighting(1 by default)\n    * cellSize **Number**  height and width of each cell(25 by default)\n    * opacity **Number** the opacity of the IDW layer (0.3 by default)\n    * gradient **Object** color gradient config, e.g. {0.4: 'blue', 0.65: 'lime', 1: 'red'} (demo by default)\n\n* more infomation please check [maptalks.Layer](https://maptalks.github.io/maptalks.js/api/0.x/Layer.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzcyrus%2Fmaptalks.IdwLayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzcyrus%2Fmaptalks.IdwLayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzcyrus%2Fmaptalks.IdwLayer/lists"}