The Polyline class defines a linear overlay of connected line segments on the map. A Polyline object consists of an array of coordinates, and creates a series of line segments that connect those locations in an ordered sequence.
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.polyline
service is. The configuration describes
below is this default configuration.
# app/config/config.yml
fungio_google_map
polyline:
# Your own polyline class
class: "My\Fucking\Polyline"
# Your own polyline helper class
helper_class: "My\Fucking\PolylineHelper"
# Prefix used for the generation of the polyline javascript variable
prefix_javascript_variable: "polyline_"
# Custom polyline options
# By default, there is no options
options:
geodesic: true
strokeColor: "#ffffff"
<?php
// Requests the fungio google map polyline service
$polyline = $this->get('fungio_google_map.polyline');
If you want to learn more, you can read this documentation.