2amigos/yii2-google-maps-library

how to show map full width,.??

hariadi04 opened this issue ยท 7 comments

solve.
i found it.

thx,.

hariadi04 what did you do?

edit map.php
image

but it's possible setting 100% of width?

Suaz commented

this works for me
$map = new Map([
'center' => $coord,
'zoom' => 17,
'width' => '100%',
'height' => '300',
]);

@McNamara10 You have to use '100%' instead of a number.

@hariadi04 If you do so, you will have to modify that file every time you install de package with a package manager. You have to pass the with parameter when you create a Map instance (as Suaz commented before).