docs(maps): Describe how to get map instance from within component.ts to input to MapMarker, InfoWindow
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia in src/google-maps/map-marker e rivedi l’esempio di documentazione esistente che ottiene la mappa tramite un evento mapClick. Determina come ottenere il riferimento alla mappa da component.ts prima dell’interazione dell’utente e passarlo a MapMarker o InfoWindow. Il lavoro è completato quando la documentazione interessata include un esempio funzionante per decorare la mappa prima dell’interazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- documentation, frontend
- Tipo di issue
- Documentazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100