public void setMarkerType(MarkerStyleProperty markerType) {
if (markerType == null) {
return;
}
// try to get the corresponding enum value
MappingMarkerStyle styleMapping = MappingMarkerStyle.getMarkerStyleMapping(markerType);
// if not found, use the default value
if (styleMapping == null) {
styleMapping = DEFAULT_MARKER_STYLE;
}
markerStyle = styleMapping;