TileOverlayOptions interface
April 11, 2018 ยท View on GitHub
let options: TileOverlayOptions = {
getTile: (x: number, y: number, zoom: number) => {
return "http://tile.stamen.com/watercolor/" + zoom + "/" + x + "/" + y + ".jpg";
},
visible: true,
zIndex: 0,
tileSize: 512,
opacity: 1.0,
debug: false
};
this.map.addTileOverlay(options);
Interface members
| Params | Type | Details |
|---|---|---|
| getTile | function | This callback must Returns string of image URL. If no tile, you need to Returns null. |
| visible | boolean | (optional)Set false if you want to create invisible tilelayer.(Default is true) |
| zIndex | number | (optional)Hierarchy z-index of tilelayer |
| tileSize | number | (optional)Default: 512px |
| opacity | number | (optional)from 0.0 to 1.0 |
| debug | boolean | (optional)Set true if you want to display the tile information over the tile images. |