Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Display the InfoWindow of all markers by default #111

Open
urbannet92 opened this issue Apr 21, 2018 · 1 comment
Open

Display the InfoWindow of all markers by default #111

urbannet92 opened this issue Apr 21, 2018 · 1 comment

Comments

@urbannet92
Copy link

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();

@urbannet92
Copy link
Author

urbannet92 commented Apr 23, 2018

Hi,
for info, i see this request #35
but it's not ok, he open only a last marker.
for me, i like open all markers info window.
Thank''s

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant