• Resolved owaiskl

    (@owaiskl)


    Hi there,

    Thanks for releasing this map plugin, it’s really easy to use, and the only map I could find for WordPress that doesn’t use the Google Maps look, which is perfect for a project I am working on.

    My only question is, right now it seems that the width in the mapdata file has to be in pixels, and I tried to insert a percentage, but it doesn’t work. Since the site I am working in is a responsive design (for mobile), I would like to somehow set the width to 100%, rather than a set pixel width.

    Is there a way to work around this? Or is there a way to fix this using css and media queries?

    Thanks!

    https://www.ads-software.com/plugins/interactive-maps/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author simplemaps

    (@simplemaps)

    Hi Owaiskl,
    Sorry for the delay in responding and thanks for your kind words about the plugin. The map can be used in a responsive design. You just need to replace:
    width: ‘750’,
    with
    width: ‘responsive’
    in other words, use the string ‘responsive’ instead of a number in the main_settings of the mapdata.js file. To learn more, you can see:
    https://simplemaps.com/articles/make-a-responsive-interactive-javascript-map/

    Thread Starter owaiskl

    (@owaiskl)

    hi there,

    Thanks for your response, I tried the ‘responsive’ string but it simply renders the map blank… I’m not sure why this is but it only works for me with a number string?

    Also there seems to be a bug in the plugin that makes wordpress think the plugin is always in need of an update, yet updating the plugin through wordpress doesn’t actually do anything…?

    Would appreciate your help on these.

    Thread Starter owaiskl

    (@owaiskl)

    Hi there,

    Please disregard my last question, I just updated the plugin successfully and downlaoded the latest version of the maps, and the responsive width is now working perfectly.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Width of Map’ is closed to new replies.