Skip to content

Commit

Permalink
[Doc] Improve info window (#214)
Browse files Browse the repository at this point in the history
* Documentation improvement

Slight tweak to avoid confusion with docs.

* [Doc] Improve info winfow doc
  • Loading branch information
benr77 authored and GeLoLabs committed Feb 7, 2017
1 parent 20e7c35 commit 898d2cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/overlay/info_window.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

0 comments on commit 898d2cf

Please sign in to comment.