use of org.discotools.gwt.leaflet.client.marker.CircleMarker in project activityinfo by bedatadriven.
the class LeafletMarkerFactory method createBubbleMapMarker.
public static Marker createBubbleMapMarker(BubbleMapMarker marker) {
Options options = new Options();
options.setProperty("radius", marker.getRadius());
options.setProperty("fill", true);
options.setProperty("fillColor", LeafletUtil.color(marker.getColor()));
options.setProperty("fillOpacity", marker.getAlpha());
// stroke color
options.setProperty("color", LeafletUtil.color(marker.getColor()));
// stroke opacity
options.setProperty("opacity", 0.8);
setModel(options.getJSObject(), marker);
return new CircleMarker(toLatLng(marker), options);
}
Aggregations