Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
deyihu committed Oct 15, 2024
1 parent 7f78fde commit daef719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
## Examples

* [simple get tile](https://deyihu.github.io/maptalks.tileclip/demo/tile.html)
* [get tile with filter](https://deyihu.github.io/maptalks.tileclip/demo/polygon-hole-clip-filter.html)
* [clip by polygon](https://deyihu.github.io/maptalks.tileclip/demo/polygon-clip.html)
* [clip by polygon with holes](https://deyihu.github.io/maptalks.tileclip/demo/polygon-hole-clip.html)
* [clip by multipolygon](https://deyihu.github.io/maptalks.tileclip/demo/multipolygon-clip.html)
Expand Down Expand Up @@ -70,6 +71,7 @@ const tileActor = getTileActor();

* `getTile(options)` get tile [ImageBitmap](https://developer.mozilla.org/zh-CN/docs/Web/API/ImageBitmap) by fetch in worker, return `Promise`
+ `options.url`:tile url
+ `options.filter`:[CanvasRenderingContext2D.filter](https://mdn.org.cn/en-US/docs/Web/API/CanvasRenderingContext2D/filter)

```js
import {
Expand Down

0 comments on commit daef719

Please sign in to comment.