WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps
[resolved] Width in percentage not working anymore (4 posts)

  1. kharlo
    Member
    Posted 1 year ago #

    Hello, after the latest update, the mashup maps doesn't receive the "100%" width of the map.
    In the template function, I made a call like this:

    array(
    'width' => '100%',
    'height' => 300 ,
    'zoom' => 2 ,
    'map_type_id' => 'roadmap'
    )

    but now the 100% becomes 100px... in every single site I used it (4 or 5 different sites).
    How can I put the width with a percentage now?
    Thanks!

    http://wordpress.org/extend/plugins/pronamic-google-maps/

  2. Leon Rowland
    Member
    Posted 1 year ago #

    Hello kharlo.

    I have found the problem. It exists in this file:

    https://github.com/pronamic/wp-pronamic-google-maps/blob/master/classes/Pronamic/Google/Maps/Mashup.php#L148

    on line 148. I will look to getting this patched and updated as early as possible, but if you wish to implement the fix yourself until the plugin has been updated, replace line 148 with the following:

    http://pastebin.com/Fsgfn5EK

  3. kharlo
    Member
    Posted 1 year ago #

    Hey, thank you for your quick reply, that worked!
    Waiting for next release..

  4. Remco Tolsma
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic