.. Copyright (c) 2018, Johan Mabille, Sylvain Corlay, Wolf Vollprecht and Martin Renou Distributed under the terms of the BSD 3-Clause License. The full license is in the file LICENSE, distributed with this software. Circle Marker ============= Example ------- .. code:: #include "xleaflet/xmap.hpp" #include "xleaflet/xbasemaps.hpp" #include "xleaflet/xcircle_marker.hpp" auto terrain = xlf::basemap({"Stamen", "Watercolor"}); auto map = xlf::map::initialize() .layers({terrain}) .center({53, 354}) .zoom(5) .finalize(); auto circle_marker = xlf::circle_marker::initialize() .location({55, 360}) .radius(50) .color("red") .fill_color("red") .finalize(); map.add_layer(circle_marker); map Attributes ---------- ===================== ======================================== ================ === Attribute Type Default Value Doc ===================== ======================================== ================ === location ``std::array`` {0.0, 0.0} Location of the circle radius ``int`` 10 Radius of the circle, in pixels stroke ``bool`` true Set it to `false` to disable borders color ``std::string`` "#0033FF" Color of the stroke opacity ``float`` 1.0 Opacity of the stroke weight ``int`` 5 Width of the stroke in pixels fill ``bool`` true Whether to fill the circle or not fill_color ``std::string`` "#0033FF" fill_opacity ``float`` 0.2 dash_array ``std::string`` line_cap ``std::string`` "round" line_join ``std::string`` "round" ===================== ======================================== ================ ===