I have tested the above mentioned Jerry's plugin. It offers really nice possibilities. There is stated in documentation:
...
The map size and other configuration parameters can be changed by preceding a call to googlemaps(...) with a call to function googlemaps_config ("config_parameter", "value") before plugin call, f.ex.:
{ [{Googlemaps_config ("mapsize_height", "600");}}}
{ {{Google Maps (51.508742, -0.120850);}}}
...
I tried this and it works fine. In the index.php you may find (about #73):
Code: Select all
$o.='<div id="googleMap'.$gmapId.'" style="width:'.$plugin_cf['googlemaps']['mapsize_width'].'px;height:'.$plugin_cf['googlemaps']['mapsize_height'].'px;"></div>'."\n";
It means the dimension to be put without "px", as this is added in the php. In this case the map can't be show responsive. I tried to put dimensions in "%" and it works even without changing the index.php code. The map is responsive now.Try this:
Code: Select all
{{{GoogleMaps_config ("mapsize_width","100%");}}}
{{{GoogleMaps_config ("mapsize_height","300");}}}
{{{GoogleMaps (49.000842, 20.748526);}}}
or
Code: Select all
{{{GoogleMaps_config ("mapsize_width","100%","mapsize_height","300");}}}
{{{GoogleMaps(49.000842, 20.748526);}}}
The height cant be defined only in px (without "px" in the plpugin call).