docs(maps): Describe how to get map instance from within component.ts to input to MapMarker, InfoWindow
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
### Documentation Feedback
Currently the example docs rely on a single use case where the user interacts with the map and a (mapClick) event grabs the map instance and passes it back to a component.ts function. If a developer wishes to decorate a map with a marker or an info window before a user interacts with it, there is no map reference to use.
It appears that standard @ViewChild methods for obtaining a dom reference do not work with the angular google-maps component. We could use a good example of how to get the map reference.
### Affected documentation page
https://github.com/angular/components/tree/master/src/google-maps/map-marker
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez dans src/google-maps/map-marker et examinez l’exemple de documentation existant qui obtient la carte via un événement mapClick. Déterminez comment obtenir la référence de la carte depuis component.ts avant l’interaction de l’utilisateur et la transmettre à MapMarker ou InfoWindow. Le travail est terminé lorsque la documentation concernée inclut un exemple fonctionnel pour décorer la carte avant l’interaction.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- documentation, frontend
- Type d'issue
- Documentation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100