List of usage examples for com.google.gwt.maps.client.geom Size newInstance
public static native Size newInstance(int width, int height) ;
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); }