New to Kendo UI for Angular? Start a free 30-day trial
TileLayerComponent
Represents the Kendo UI TileLayer component for Angular. Displays raster map tiles from various sources.
typescript
@Component({
selector: 'my-app',
template: `
<kendo-map>
<kendo-map-tile-layer
[urlTemplate]="tileUrlTemplate"
[subdomains]="['a', 'b', 'c']"
[tileSize]="256">
</kendo-map-tile-layer>
</kendo-map>
`
})
export class AppComponent {
public tileUrlTemplate = (args: any) => `https://${args.subdomain}.tile.openstreetmap.org/${args.z}/${args.x}/${args.y}.png`;
}
Selector
kendo-map-tile-layer
Inputs
Name | Type | Default | Description |
---|---|---|---|
subdomains |
|
Sets a list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to execute in parallel. | |
tileSize |
|
|
Sets the size of the image tile in pixels. |
urlTemplate |
|
Sets a function that returns an image URL for each tile position. |
Methods
notifyChanges | ||||||
---|---|---|---|---|---|---|
Updates the component fields with the specified values and refreshes the Chart. Use this method when the configuration values cannot be set through the template. ts
| ||||||
|