Tagged: center, google maps
-
AuthorPosts
-
January 31, 2017 at 8:23 pm #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.
January 31, 2017 at 8:48 pm #740869Hi 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!
BasilisMarch 5, 2017 at 10:21 pm #756047I 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?
Thanks!
March 6, 2017 at 8:42 am #756225Hi!
@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,
BasilisMarch 6, 2017 at 2:35 pm #756416Yes, 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!
March 10, 2017 at 6:06 pm #759066Hi,
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,
AndyMarch 10, 2017 at 9:48 pm #759138It’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.
May 23, 2017 at 5:30 am #798048I 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. :)
May 23, 2017 at 5:39 am #798052Great idea! You’re a smart one. Haha. I’ll have to give this a try. Thanks!
May 23, 2017 at 12:16 pm #798214June 21, 2017 at 6:51 pm #811109Thanks @pixelbiz — I can’t believe I didn’t think to test to see if the map was centering on the first/top address!!
June 22, 2017 at 7:25 am #811347May 29, 2018 at 5:37 pm #963811Great solution @pixelbiz! Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.