A factory to create markers from features. The factory creates appropriate markers the each feature type, e.g. a polygon marker for a polygon feature, and handle multi-marker from multi-feature, as well.
See the following example on how to use this factory to create your own custom markers. For this, set the marker class for each feature type with the {@link #setPointClass(Class)} etc methods.
MarkerFactory markerFactory = new MarkerFactory(); markerFactory.setPolygonClass(MyPolygonMarker.class); List<Marker> markers = markerFactory.createMarkers(features);
By default, this factory creates the simple markers provided by Unfolding, such as {@link SimplePointMarker}.