Example usage for com.google.gwt.maps.client.geom Size newInstance

List of usage examples for com.google.gwt.maps.client.geom Size newInstance

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.geom Size newInstance.

Prototype

public static native Size newInstance(int width, int height) ;

Source Link

Document

Construct a new Size object.

Usage

From source file:org.yocto.sample.client.ui.CurrentYoctoMarker.java

License:Open Source License

private static MarkerOptions createOptions() {
    Icon icon = Icon.newInstance("http://maps.google.com/mapfiles/marker_purple.png");
    icon.setIconSize(Size.newInstance(20, 34));
    icon.setIconAnchor(Point.newInstance(10, 34));
    icon.setInfoWindowAnchor(Point.newInstance(5, 1));
    return MarkerOptions.newInstance(icon);
}

From source file:org.yocto.sample.client.ui.MarkerFactory.java

License:Open Source License

private static MarkerOptions createOptions(String img) {
    Icon icon = Icon.newInstance(img);
    icon.setIconSize(Size.newInstance(20, 34));
    icon.setIconAnchor(Point.newInstance(10, 34));
    icon.setInfoWindowAnchor(Point.newInstance(5, 1));
    return MarkerOptions.newInstance(icon);
}