A Circle is similar to a Polygon in that you can define custom colors, weights, and opacities for the edge of the circle (the "stroke") and custom colors and opacities for the area within the enclosed region (the "fill"). Unlike a Polygon, you do not define paths for a Circle. Instead, a circle has two additional properties which define its shape: center of the circle, radius of the circle, in meters.
By default, the bundle doesn't need any configuration. Most of the service have a default configuration which allows
you to use the given objects like they are. The fungio_google_map.circle
service is. The configuration describes
below is this default configuration.
# app/config/config.yml
fungio_google_map:
circle:
# Your own circle class
class: "My\Fucking\Circle"
# Your own circle helper class
helper_class: "My\Fucking\CircleHelper"
# Prefix used for the generation of the circle javascript variable
prefix_javascript_variable: "circle_"
# Circle center
center:
latitude: 0
longitude: 0
no_wrap: true
# Circle radius
radius: 1
# Custom circle options
# By default, there is no options
options:
clickable: false
strokeWeight: 2
<?php
// Requests the fungio google map circle service
$circle = $this->get('fungio_google_map.circle');
If you want to learn more, you can read this documentation.