From 898d2cf381bd0dfa76bdc49077e71deac3ac4d9a Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Tue, 7 Feb 2017 19:40:47 +0100 Subject: [PATCH] [Doc] Improve info window (#214) * Documentation improvement Slight tweak to avoid confusion with docs. * [Doc] Improve info winfow doc --- doc/overlay/info_window.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/overlay/info_window.md b/doc/overlay/info_window.md index 711b40dc..810fb0d5 100644 --- a/doc/overlay/info_window.md +++ b/doc/overlay/info_window.md @@ -114,9 +114,14 @@ $infoWindow->setOption('zIndex', 10); ## Append to a map/marker -After building your info window, you need to add it to a map/marker with: +After building your info window, you can add it to a map (the info window is draw at the info window coordinate): ``` php $map->getOverlayManager()->addInfoWindow($infoWindow); +``` + +Or you can attach it to a marker (the info window is draw on top of the marker): + +``` php $marker->setInfoWindow($infoWindow); ```