agm-map not render in subcomponent
See original GitHub issueI have a section in my page this toggelt and in this page a have a AGM that not rendering? What is the problem ?
I only have this in my sub component:
<agm-map [latitude]="56" [longitude]="10"> </agm-map>
Issue Analytics
- State:
- Created 6 years ago
- Comments:13
Top Results From Across the Web
agm-map not render in subcomponent · Issue #1101 - GitHub
I have a section in my page this toggelt and in this page a have a AGM that not rendering? What is the...
Read more >Nested angular google maps components don't render
First of all, I you are working under the Angular ecosystem, I would recommend you to use ng-content and explote all its features....
Read more >Nested angular google maps components don't render - Morioh
Here is the v-map-plots sub-component ... Then render both the agm-map and agm-markers in the v-map component using the data from the directives....
Read more >AgmMap - @agm/core
AgmMap renders a Google Map. Important note: To be able see a map in the browser, you have to define a height for...
Read more >SebastianM/angular2-google-maps - Gitter
I've opened an issue for the problem that the marker-clusters don't work together ... can someone points me a working implementation on a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, Import following in you component.ts
import { AgmMap } from '@agm/core';
Then before your construction get ViewChild like bellow.
And when you show your section then called resize trigger like.
this.agmMap.triggerResize();
@sam08153 I solved this problem by adding height to component