yii2-google-maps-library icon indicating copy to clipboard operation
yii2-google-maps-library copied to clipboard

height = 100% no works.

Open tecnoterabyte opened this issue 6 years ago • 2 comments

Hi when I set the height setting to 100% it does not work,

$map = new Map([
    'center' => $coord,
    'zoom' => 5,
    'height' => '100%',
    'width'  => '100%',
]);

By changing the CSS for browser and changing position relative to absolute it works, some idea of what happens,

Regards,

tecnoterabyte avatar Mar 29 '18 23:03 tecnoterabyte

That could be because of the parent layer

tonydspaniard avatar Mar 29 '18 23:03 tonydspaniard

Solution Work Perfect StackOverflow:

#gmap0-map-canvas_container {
    position: relative;
}

#gmap0-map-canvas {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
}

I'm working with Bootstrap 4 and the Theme Dashboard Adminator,

Thks,

tecnoterabyte avatar Mar 30 '18 00:03 tecnoterabyte