New to Kendo UI for AngularStart a free 30-day trial

Represents the Kendo UI ShapeLayer component for Angular. Defines a vector shape layer bound to GeoJSON data.

Definition

Package:@progress/kendo-angular-map

Selector:kendo-map-shape-layer

Syntax:

TS
@Component({
  selector: 'my-app',
  template: `
    <kendo-map>
      <kendo-map-shape-layer 
        [data]="geoJsonData"
        [style]="shapeStyle">
      </kendo-map-shape-layer>
    </kendo-map>
  `
})
export class AppComponent {
  public geoJsonData = { type: "FeatureCollection", features: [] };
  public shapeStyle = { fill: { color: "#007acc" }, stroke: { color: "#ffffff" } };
}

Inputs

Sets the array of data items for this layer.

style?

ShapeOptions

Sets the default style for shapes.

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.

In this article
DefinitionInputsdata?style?MethodsnotifyChanges
Not finding the help you need?
Contact Support