return ("new google.maps.Circle(" + getSettings().toJS() + ")");
}
private ObjectLiteral getSettings()
{
ObjectLiteral settings = new ObjectLiteral();
settings.set("strokeWeight", String.valueOf(strokeWeight));
settings.setString("strokeColor", strokeColor);
settings.set("strokeOpacity", String.valueOf(strokeOpacity));
settings.setString("fillColor", fillColor);
settings.set("fillOpacity", String.valueOf(fillOpacity));
settings.set("center", center.toString());
settings.set("radius", String.valueOf(radius));
if (!clickable)
{
settings.set("clickable", "false");
}
if (draggable)
{
settings.set("draggable", "true");
}
if (editable)
{
settings.set("editable", "true");
}
if (!visible)
{
settings.set("visible", "false");
}
if (zIndex != null)
{
settings.set("zIndex", String.valueOf(zIndex));
}
return settings;
}