Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #252149

    Hi,
    when adding multiple markers to the map, the initial view is allways focused on the first added marker.
    Now i have 4 markers that form a square and want the initial view be centered between those markers.
    Is there any way i can do that?

    edit:
    using the wpgmappity plugin for maps now.
    For fullwidth:
    Changed wp-gmappity-easy-google-maps/js/wpgmappity-iframe.js line: 149

    else if (length > 1000)
    

    to

    else if (length > 2000)
    

    to increase the width limit that the plugin has.

    Then i placed the map into a textblock inside a color section with the section id: fullwidthmap
    The padding of the color section settings is set to “no padding”.
    Quick CSS add:

    #fullwidthmap  .container {
    width: 100% !important;
    margin: 0px;
    }
    • This topic was modified 10 years, 8 months ago by Flikk.
    #252612

    Hey Flikk!

    Try with this:

    #fullwidthmap  .container {
    width: 100% !important;
    margin: 0px;
    position: relative;
    top: -50px;
    }

    Regards,
    Josue

    #252704

    Did not work for me.
    But it looks like i was to stupid to see the padding option from the color section element.
    Changed ot from “default padding” to “no padding” and everything looks fine.
    Now i dont even need the top: -50px anymore.

    all i need is

    ‘#fullwidthmap .container {
    width: 100% !important;
    margin: 0px;
    position: relative;
    }’

    I moved on to using the google maps api myself so i can do even more stuff with the map.
    But somehow the template breaks some avia related stuff but thats another story in another topic.
    Changing my first post for people who find this and want to use it.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Google map initial view between multiple markers [solved]’ is closed to new replies.