markerDefaults.tooltip.animation Object

A collection of {Animation} objects, used to change default animations. A value of false will disable all animations in the widget.

Example - disable animations

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        markerDefaults: {
            tooltip: {
                animation: false
            }
        },
        markers: [{
            location: [42, 27],
            tooltip: {
                content: "Foo"
            }
        }, {
            location: [40, 20],
            tooltip: {
                content: "Bar"
            }
        }]
    });
</script>

markerDefaults.tooltip.animation.close Object

The animation that will be used when a Tooltip closes.

Example - set close animation

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        markerDefaults: {
            tooltip: {
                animation: {
                  close: {
                    effects: "fade:out"
                  }
                }
            }
        },
        markers: [{
            location: [42, 27],
            tooltip: {
                content: "Foo"
            }
        }, {
            location: [40, 20],
            tooltip: {
                content: "Bar"
            }
        }]
    });
</script>

markerDefaults.tooltip.animation.close.effects String

Effect to be used for closing of the tooltip.

Example - set close animation effect

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        markerDefaults: {
            tooltip: {
                animation: {
                    close: {
                        effects: "fade:out"
                    }
                }
            }
        },
        markers: [{
            location: [42, 27],
            tooltip: {
                content: "Foo"
            }
        }, {
            location: [40, 20],
            tooltip: {
                content: "Bar"
            }
        }]
    });
</script>

markerDefaults.tooltip.animation.close.duration Number

Defines the animation duration.

Example - set close animation duration

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        markerDefaults: {
            tooltip: {
                animation: {
                    close: {
                        duration: 1000
                    }
                }
            }
        },
        markers: [{
            location: [42, 27],
            tooltip: {
                content: "Foo"
            }
        }, {
            location: [40, 20],
            tooltip: {
                content: "Bar"
            }
        }]
    });
</script>

markerDefaults.tooltip.animation.open Object

The animation that will be used when a Tooltip opens.

Example - set open animation

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        markerDefaults: {
            tooltip: {
                animation: {
                    open: {
                        effects: "fade:in",
                        duration: 1000
                    }
                }
            }
        },
        markers: [{
            location: [42, 27],
            tooltip: {
                content: "Foo"
            }
        }, {
            location: [40, 20],
            tooltip: {
                content: "Bar"
            }
        }]
    });
</script>

markerDefaults.tooltip.animation.open.effects String

Effect to be used for opening of the Tooltip.

Example - set open animation effect

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        markerDefaults: {
            tooltip: {
                animation: {
                    open: {
                        effects: "fade:in"
                    }
                }
            }
        },
        markers: [{
            location: [42, 27],
            tooltip: {
                content: "Foo"
            }
        }, {
            location: [40, 20],
            tooltip: {
                content: "Bar"
            }
        }]
    });
</script>

markerDefaults.tooltip.animation.open.duration Number

Defines the animation duration.

Example - set open animation duration

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        markerDefaults: {
            tooltip: {
                animation: {
                    open: {
                        duration: "1000"
                    }
                }
            }
        },
        markers: [{
            location: [42, 27],
            tooltip: {
                content: "Foo"
            }
        }, {
            location: [40, 20],
            tooltip: {
                content: "Bar"
            }
        }]
    });
</script>
In this article