The Google Maps API supports the KML and GeoRSS data formats for displaying geographic information. For more information, see official documentation.
use Fungio\GoogleMap\Layers\KMLLayer;
$kmlLayer = new KMLLayer();
// Configure your KML layer options
$kmlLayer->setUrl('http://www.domain.com/kml_layer.kml');
$kmlLayer->setOption('clickable', true);
$kmlLayer->setOption('suppressInfoWindows', false);
$kmlLayer->setOptions(array(
'clickable' => true,
'suppressInfoWindows' => false,
));
use Fungio\GoogleMap\Layers\KMLLayer;
$kmlLayer = new KMLLayer();
// Add your KML layer to the map
$map->addKMLLayer($kmlLayer);