Skip to content

Commit 4eb9e28

Browse files
committed
update readme
1 parent 32e6035 commit 4eb9e28

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
```
3131

3232
- [demo online](https://deyihu.github.io/maptalks.tileclusterlayer/test/ "demo online")
33+
- [million markers cluster](https://deyihu.github.io/maptalks.tileclusterlayer/test/perf.html "million markers cluster")
3334

3435
```js
3536
function getClusterMarkerSymbol(count) {
@@ -83,4 +84,12 @@ const geojson={
8384
};
8485
tileClusterLayer.setData(geojson);
8586

87+
//use in ESM
88+
89+
import * as maptalks from 'maptalks';
90+
import {TileClusterLayer} from 'maptalks.tileclusterlayer';
91+
const tileClusterLayer = new TileClusterLayer("tileClusterLayer",{
92+
...
93+
});
94+
8695
```

0 commit comments

Comments
 (0)