Markers identify locations on the map. By default, they use a standard icon.
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.marker
service is. The configuration describes
below is this default configuration.
# app/config/config.yml
fungio_google_map:
marker:
# Your own marker class
class: "My\Fucking\Marker"
# Your own marker helper class
helper_class: "My\Fucking\MarkerHelper"
# Prefix used for the generation of the marker javascript variable
prefix_javascript_variable: "marker_"
# Position of the marker
position:
latitude: 0
longitude: 0
no_wrap: true
# Marker animation
# Available animation: bounce, drop
# By default, there is no animation
animation: "drop"
# Custom marker options
# By default there is no marker options
options:
clickable: false
flat: true
<?php
// Requests the fungio google map marker service
$marker = $this->get('fungio_google_map.marker');
If you want to learn more, you can read this documentation.
The complete marker image configuration is available here.
The complete marker shape configuration is available here.