layers.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: "marker",
            tooltip: {
                animation: false,
                content: "Foo"
            },
            dataSource: {
                data: [{
                    latlng: [0, 0]
                }]
            },
            locationField: "latlng"
        }]
    });
</script>

layers.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: "marker",
            tooltip: {
                animation: {
                  close: {
                    effects: "fade:out"
                  }
                },
                content: "Foo"
            },
            dataSource: {
                data: [{
                    latlng: [0, 0]
                }]
            },
            locationField: "latlng"
        }]
    });
</script>

layers.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: "marker",
            tooltip: {
                animation: {
                    close: {
                        effects: "fade:out"
                    }
                },
                content: "Foo"
            },
            dataSource: {
                data: [{
                    latlng: [0, 0]
                }]
            },
            locationField: "latlng"
        }]
    });
</script>

layers.tooltip.animation.close.duration Number

Defines the animation duration.

Example - set close animation duration

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "marker",
            tooltip: {
                animation: {
                    close: {
                        duration: 1000
                    }
                },
                content: "Foo"
            },
            dataSource: {
                data: [{
                    latlng: [0, 0]
                }]
            },
            locationField: "latlng"
        }]
    });
</script>

layers.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: "marker",
            tooltip: {
                animation: {
                    open: {
                        effects: "fade:in",
                        duration: 1000
                    }
                },
                content: "Foo"
            },
            dataSource: {
                data: [{
                    latlng: [0, 0]
                }]
            },
            locationField: "latlng"
        }]
    });
</script>

layers.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: "marker",
            tooltip: {
                animation: {
                    open: {
                        effects: "fade:in"
                    }
                },
                content: "Foo"
            },
            dataSource: {
                data: [{
                    latlng: [0, 0]
                }]
            },
            locationField: "latlng"
        }]
    });
</script>

layers.tooltip.animation.open.duration Number

Defines the animation duration.

Example - set open animation duration

<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "marker",
            tooltip: {
                animation: {
                    open: {
                        duration: "1000"
                    }
                },
                content: "Foo"
            },
            dataSource: {
                data: [{
                    latlng: [0, 0]
                }]
            },
            locationField: "latlng"
        }]
    });
</script>
In this article