markerDefaults.shape String (default: "pinTarget")

The default marker shape. The following pre-defined marker shapes are available:

  • pinTarget
  • pin

Marker shapes are implemented as CSS classes on the marker element (span.k-marker). For example "pinTarget" is rendered as "k-marker-pin-target".

Example - setting default shape for all markers

<div id="map"></div>
        layers: [{
            type: "tile",
            urlTemplate: " zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        markerDefaults: {
            shape: "pin"
        markers: [{
            location: [42, 27]
        }, {
            location: [40, 20]
In this article
Not finding the help you need? Improve this article