Search in sources :

Example 1 with CircleMarker

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);
}
Also used : IconOptions(org.discotools.gwt.leaflet.client.types.IconOptions) Options(org.discotools.gwt.leaflet.client.Options) MarkerOptions(org.discotools.gwt.leaflet.client.marker.MarkerOptions) CircleMarker(org.discotools.gwt.leaflet.client.marker.CircleMarker)

Aggregations

Options (org.discotools.gwt.leaflet.client.Options)1 CircleMarker (org.discotools.gwt.leaflet.client.marker.CircleMarker)1 MarkerOptions (org.discotools.gwt.leaflet.client.marker.MarkerOptions)1 IconOptions (org.discotools.gwt.leaflet.client.types.IconOptions)1