You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
$coord = new LatLng(['lat' => 48.3175245000, 'lng' => 2.0921782000]);
// Lets add a marker now
$marker = new Marker([
'position' => $coord,
'title' => 'Titre 1',
]);
// Provide a shared InfoWindow to the marker
$infoWin = new InfoWindow([
'content' => '
Hello,
how I can display the InfoWindow of all markers by default.
Thank you.
My code is:
$coord = new LatLng(['lat' => 48.866667, 'lng' => 2.333333]);
// ---------------------------------------------------
$map = new Map([
'center' => $coord,
'zoom' => 14,
]);
// Lets add a marker now
$marker = new Marker([
'position' => $coord,
'title' => 'Titre 1',
]);
// Provide a shared InfoWindow to the marker
$infoWin = new InfoWindow([
'content' => '
This is title
']);
// $infoWin->setOptions(new InfoWindowOptions(['visible'=>true]));
$marker->attachInfoWindow($infoWin);
$map->addOverlay($marker);
// ---------------------------------------------------
$coord = new LatLng(['lat' => 48.3175245000, 'lng' => 2.0921782000]);
// Lets add a marker now
$marker = new Marker([
'position' => $coord,
'title' => 'Titre 1',
]);
// Provide a shared InfoWindow to the marker
$infoWin = new InfoWindow([
'content' => '
This is title
']);
// $infoWin->setOptions(new InfoWindowOptions(['visible'=>true]));
$marker->attachInfoWindow($infoWin);
$map->addOverlay($marker);
// ---------------------------------------------------
// Display the map -finally :)
echo $map->display();
The text was updated successfully, but these errors were encountered: