* Test the Polygon constructor with the PolygonOptions in the constructor.
*/
public void testPolygonWithOptions() {
loadApi(new Runnable() {
public void run() {
MapWidget map = new MapWidget(LatLng.newInstance(0, 0), 3);
map.setSize("500px", "400px");
LatLng[] points = { //
LatLng.newInstance(45, 45), //
LatLng.newInstance(45, -45), //
LatLng.newInstance(0, 0)};
PolygonOptions opts = PolygonOptions.newInstance();
opts.setClickable(false);
Polygon p = new Polygon(points, "#ff0000", 3, 1.0, "#0000ff", 0.3, opts);
map.addOverlay(p);
RootPanel.get().add(map);
}
});
}