Skip to content

Null handling for clurster / marker etc. items #9

@radzio

Description

@radzio
@BindingAdapter("gmv_clusterItems")
  public static <T> void clusterItems(GoogleMapView googleMapView,
      Collection<T> items) {
    if (items == null) {
      return;
    }

    googleMapView.clusterItems(items);
  }

We should handle nulls differently. If user passes null IMHO we should remove all elements.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions