Center map around several points

Is there a way to center the map around several points? I’ve got 2 locations, as you can see here: http://cngdoctors.fiddlersites.com/contact-us/ and it’s centered on the one, pushing the other to the very edge. It would be super handy if we could make it center over both, or, keep the same view as in the map editor, the same way it keeps the zoom level.

Would also be nice if we could add custom (or there were some built-in custom) markers and such. Like so many plugins around here, this one’s almost there, but could just use a little more work and finessing to make it a really great plugin.

  • Arun Basil Lal
    • New Recruit

    Hey Tevya,

    I see it, and I ran some tests. From what I could find, the maps were shown the way it was in the editor, provided the map was wider than the editor.

    If it isn’t so for you, here is what that will work.

    In the map settings, activate the “Center map on location” addon. Now this enables some shortcode arguments. For example:

    [map id=”12″ center=”45.359865,20.412598″]

    would center it around the longitude latitude combo as specified.

    What you could do is, find the longitude and latitude of the mid-point of your map and use the shortocode with the extra parameters.

    I think the coordinates for you would be 40.35871,-111.840334

    so [map id=”12″ center=”40.35871,-111.840334″] would work, (replacing 12 with your specific ID.)

    Please give that a try and let me know :slight_smile:

  • Tevya
    • Recruit

    I appreciate you following up Joe. I’m not sure. I don’t remember updating the plugin, but I’m now using the most recent version. I have the “center on location” set on the sites I’m using it for. When I need it on another site, I’ll try without using that feature and let you know.