if (uidl == null || uidl.getAttributeNames().size() == 0) {
VConsole.log("Neither hover nor select states found for a maker.");
VConsole.log("Exit [getMarkerState]");
return null;
}
GwtMarkerState markerState = GwtMarkerState.create();
if (uidl.hasAttribute("enabled")) {
markerState.setEnabled(uidl.getBooleanAttribute("enabled"));
}
if (uidl.hasAttribute("lineColor")) {
markerState.setLineColor(uidl.getStringAttribute("lineColor"));
}
if (uidl.hasAttribute("fillColor")) {
markerState.setFillColor(uidl.getStringAttribute("fillColor"));
}
if (uidl.hasAttribute("lineWidth")) {
markerState.setLineWidth(uidl.getIntAttribute("lineWidth"));
}
if (uidl.hasAttribute("radius")) {
markerState.setRadius(uidl.getIntAttribute("radius"));
}
VConsole.log("Exit [getMarkerState]");
return markerState;
}