@SuppressWarnings("unchecked") @Override public void setPath(List<HasLatLng> path) { JsArray<JavaScriptObject> pathJsArr = (JsArray<JavaScriptObject>) JavaScriptObject.createArray(); for (HasLatLng latLng : path) { pathJsArr.push(latLng.getJso()); } PolylineImpl.impl.setPath(jso, pathJsArr); }
@Override public void setCenter(HasLatLng center) { CircleOptionsImpl.impl.setCenter(jso, center.getJso()); }