forked from sebholstein/angular-google-maps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add guide for basic info windows
- Loading branch information
1 parent
75bb085
commit b35d9bf
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters