TileLayerComponent
Component
Represents the Kendo UI TileLayer component for Angular. Displays raster map tiles from various sources.
Definition
Package:@progress/kendo-angular-map
Selector:kendo-map-tile-layer
Syntax:
TS
@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`;
}
Inputs
subdomains
string[]
Sets a list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to execute in parallel.
tileSize
number
Sets the size of the image tile in pixels.
Default:
256
Sets a function that returns an image URL for each tile position.
Methods
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.
Parameters:changesany
An object containing the updated input fields.