This repository was archived by the owner on May 11, 2020. It is now read-only.
This repository was archived by the owner on May 11, 2020. It is now read-only.
ngMap forces height even if default style is disabled #611
Open
Description
I am using ngmap in custom directive which is styled with ng-style.
This means that during map initialization component height is not set - I noticed that in this case despite setting defaultStyle to false, ngmap forces 300 px height in setStyle method:
if (getStyle(el, 'height').match(/^(0|auto)/)) {
el.style.height = '300px';
}
and ng style (or map resize event) do not work afterwards.
My suggestion would be to remove this condition, as it collides logically with defaultStyle property.