markers.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"
        }],
        markers: [{
            location: [42, 27],
            tooltip: {
                animation: false,
                content: "Foo"
            }
        }]
    });
</script>

markers.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"
        }],
        markers: [{
            location: [42, 27],
            tooltip: {
                animation: {
                  close: {
                    effects: "fade:out"
                  }
                },
                content: "Foo"
            }
        }]
    });
</script>

markers.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"
        }],
        markers: [{
            location: [42, 27],
            tooltip: {
                animation: {
                    close: {
                        effects: "fade:out"
                    }
                },
                content: "Foo"
            }
        }]
    });
</script>

markers.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"
        }],
        markers: [{
            location: [42, 27],
            tooltip: {
                animation: {
                    close: {
                        duration: 1000
                    }
                },
                content: "Foo"
            }
        }]
    });
</script>

markers.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"
        }],
        markers: [{
            location: [42, 27],
            tooltip: {
                animation: {
                    open: {
                        effects: "fade:in",
                        duration: 1000
                    }
                },
                content: "Foo"
            }
        }]
    });
</script>

markers.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"
        }],
        markers: [{
            location: [42, 27],
            tooltip: {
                animation: {
                    open: {
                        effects: "fade:in"
                    }
                },
                content: "Foo"
            }
        }]
    });
</script>

markers.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"
        }],
        markers: [{
            location: [42, 27],
            tooltip: {
                animation: {
                    open: {
                        duration: "1000"
                    }
                },
                content: "Foo"
            }
        }]
    });
</script>
In this article