You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
When I load my site the div element doesn't show but when I inspect element it shows div id="map" style="height: 0px; position: relative; overflow: hidden;"
Here's my js:
initMap: function(){
map = new GMaps({
el: '#map',
lat: 14.5507605,
lng: 121.0512538
});
I ran into this problem, as well. For me the issue was caused by this line of code in my component's .html file
<div #gmap style=”width:100%;height:400px”></div>
Notice that the quote marks are slanted (yea, I copied and pasted this code from a tutorial). For some reason this caused Angular to add the following markup above my code:
When I load my site the div element doesn't show but when I inspect element it shows div id="map" style="height: 0px; position: relative; overflow: hidden;"
Here's my js:
initMap: function(){
map = new GMaps({
el: '#map',
lat: 14.5507605,
lng: 121.0512538
});
The text was updated successfully, but these errors were encountered: