Example usage for com.google.gwt.maps.client.overlays MarkerOptions setAnimation

List of usage examples for com.google.gwt.maps.client.overlays MarkerOptions setAnimation

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.overlays MarkerOptions setAnimation.

Prototype

public final void setAnimation(Animation animation) 

Source Link

Usage

From source file:com.google.gwt.maps.testing.client.maps.BasicMapWidget.java

License:Apache License

private void drawMarkerWithBounceAnimation() {
    LatLng center = LatLng.newInstance(46.33, -113.81);
    MarkerOptions options = MarkerOptions.newInstance();
    options.setPosition(center);/*from   w  w w  .  ja v a 2 s .  com*/
    options.setTitle("Hi I'm marker 2. Thanks for clicking on me.");
    options.setAnimation(Animation.BOUNCE);

    markerBouncing = Marker.newInstance(options);
    markerBouncing.setMap(mapWidget);
}

From source file:com.google.gwt.maps.testing.client.maps.BasicMapWidget.java

License:Apache License

private void drawMarkerWithDropAnimation() {
    LatLng center = LatLng.newInstance(42.33, -120.81);
    MarkerOptions options = MarkerOptions.newInstance();
    options.setPosition(center);//  www .java 2  s .co m
    options.setTitle("Thanks for clicking on me.");
    options.setAnimation(Animation.DROP);

    markerDrop = Marker.newInstance(options);
    markerDrop.setMap(mapWidget);
}