Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #740863

    Hi there. I have a google map that has two locations. One in Washington and one in Florida. The map seems to center on the first item I add to the map which requires me to zoom waaaaaaay out to show both locations. I suspect you’ll say this is custom work or a feature request but is there any way at all to define the center of the map as something other than a point on the map?

    If this is beyond the usual scope of support, can you give me a nudge in the right direction on how to do this so I can figure out the rest? Any help would be appreciated.

    #740869

    Hi Kevin!

    That will need to work on customizing the shortcode of the element.
    Can it be easier for you, to embed an iframe with the map, centered the way you want through google.
    That will make your work way easier!

    Let us know if we can do anything else for you.

    Cheers!
    Basilis

    #756047

    I have a similar problem — my markers are all over the world and my map is centering somewhere over the dateline, with the Americas on the right and Eurasia on the left — see linked screen grab below — not what people are used to seeing. Is there anything you can tell us about how the map centers? Is it actually based on the markers somehow? Maybe we could place some invisible markers to fake it out?

    https://www.evernote.com/shard/s320/sh/3f58c0ea-dd1f-4088-8f43-897f41816a30/4857279df46f034634c74c6f18dfe534

    Thanks!

    #756225

    Hi!


    @sky19er
    as reported previously, any type of that works would require to modify shortcodes and it is not something that we do have it as an option or offer inside our supprot policy.

    Thank you very much for your understanding.

    Best regards,
    Basilis

    #756416

    Yes, but do you know how it works — like, do you understand anything about how it centers? Does it center on the first marker, as Kevin suggested? I’m not asking you to modify it, I’m just asking if you can offer any insight as to how it centers…?

    Thanks!

    #759066

    Hi,

    not sure if we can help here. Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)

    Best regards,
    Andy

    #759138

    It’s ok, I already purchased and implemented wp google maps. I’ll try you again in the unlikely chance I face this same issue in the future ;) Thanks anyway.

    #798048

    I have a good workaround for this issue… create a new map marker and give it a city address in the location you’d like to have be ‘center.’ Then add a ‘custom marker image’ to replace the pin… if you want it not to show at all, use a ‘spacer.gif’ (transparent gif of 1px by 1px) — Then move the fake marker to the top so the map centers on it. Voila! a new custom map center with no marker. Hope that helps someone. :)

    #798052

    Great idea! You’re a smart one. Haha. I’ll have to give this a try. Thanks!

    #798214

    Hi,

    Thanks for sharing @pixelbiz, much appreciated :-)

    Best regards,
    Rikard

    #811109

    Thanks @pixelbiz — I can’t believe I didn’t think to test to see if the map was centering on the first/top address!!

    #811347

    Hi @sky19er,

    Thanks for the feedback, glad you got it working :-)

    Best regards,
    Rikard

    #963811

    Great solution @pixelbiz! Thanks!

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.