Skip to content

Commit

Permalink
docs: add guide for basic info windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchhentges authored and sebholstein committed Nov 17, 2017
1 parent 75bb085 commit b35d9bf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/content/guides/basic-info-window.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
+++
date = "2017-11-15T15:05:00-07:00"
draft = false
title = "Basic Info Windows"

+++

## Adding an Info Window to a Map Marker

By making a `<agm-info-window>` a child element of an `<agm-marker>`, AGM will automatically make sure that clicking the marker will open the info window.
For example:

```html
<agm-map [latitude]="59.326242" [longitude]="17.8419719" >
<agm-marker [latitude]="59.326242" [longitude]="17.8419719">
<agm-info-window>Börk</agm-info-window>
</agm-marker>
</agm-map>
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<h5 class="section-title">General</h5>
<ul>
<li><a href="/guides/getting-started">Getting started</a></li>
<li><a href="/guides/basic-info-window">Basic Info Windows</a></li>
</ul>
</section>

Expand Down

0 comments on commit b35d9bf

Please sign in to comment.