angular / angular/components

docs(maps): Describe how to get map instance from within component.ts to input to MapMarker, InfoWindow

Abierto
#24,042 1 comentario 4 reacciones 0 asignados Ver en GitHub
area: google-maps docs P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

### 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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza en src/google-maps/map-marker y revisa el ejemplo de documentación existente que obtiene el mapa mediante un evento mapClick. Determina cómo se puede obtener la referencia al mapa desde component.ts antes de la interacción del usuario y pasarla a MapMarker o InfoWindow. Se considera terminado cuando la documentación afectada incluye un ejemplo funcional para decorar el mapa antes de la interacción.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
documentation, frontend
Tipo de issue
Documentación
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.