- This topic has 9 replies, 2 voices, and was last updated 6 days, 23 hours ago by Matthew.
November 18, 2022 at 11:17 pm #75360telleidParticipant
Hi all, I couldn’t find this particular problem in the documentation or forum search.
I’m looking to create a map centered on the Pacific. It seems that multiple plugins, including WP Go Maps, have a problem with displaying Pacific locations on the same side of the globe right around the international dateline (the tendency is to split pins in this region in half, see attachment for example). In particular, Samoa (-13.83282,-171.760056) and Tonga (-21.13938, -175.2018) were the countries I wanted to display alongside more westerly islands. I ended up taking 360-abs(longitude) for those two pins and voila, they show up.
Now the problem: if I scroll or drag the map to the right, all pins except Samoa and Tonga disappear. Scroll/drag back to the right and they reappear. Is there a way to keep all pins on the map? Could it be related to my workaround to get the eastern pins to show up & is there a better way to get around that?
I’m afraid I can’t link to the map because it’s on a site that’s still locked to admins only for development, but might be able to work something out if necessary.
Any help or guidance will be greatly appreciated!
Attachments:You must be logged in to view attached files.November 21, 2022 at 8:47 am #75376MatthewModerator
Thank you for getting in touch with us, we do appreciate your time.
Thank you for the explanation and screenshot that you have provided, as it gives me an idea of what you are experiencing.
As your site is locked at the moment, please may I ask if you may provide me with an export your maps and marker data so that I may test the map and markers locally?
To do this, please do the following:
1. Navigate to Maps -> Tools -> Export.
2. Select “JSON” as the export type as well as ensure all options are selected/enabled.
3. Click the “Export” button.
Once this has been done, please may you provide me with the exported JSON file so that I may test using your data?
Note: you may mark your reply as private if preferred.
I look forward to hearing back from you.
MatthewNovember 22, 2022 at 3:35 am #75392telleidParticipant
Thank you so much for your reply. I wish I could have included the video showing the problem too but file size was too big.
Unfortunately it looks like I can’t export because I am on the Basic version without the Pro add-on. Do you know if there’s a free trial I could activate to allow the export? Or another workaround?
Thank you for your time!November 22, 2022 at 8:39 am #75395MatthewModerator
Thank you for getting back to me and for your time on this, I really appreciate it!
My apologies for that, you could possibly upload your video to your Google Drive and then share the link with me?
Unfortunately we do not have a free trial for our add-ons, however, do not worry as we will get this issue sorted.
I look forward to hearing back from you.
MatthewNovember 23, 2022 at 5:19 am #75397telleidParticipantThis reply has been marked as private.November 24, 2022 at 10:33 am #75438MatthewModerator
Thank you for your continued time and patience on this, I really appreciate it!
Thank you for the video as it helps get a better idea as to what you are experiencing.
This is unfortunately one of the limitations/down-sides to using the OpenLayers map engine whereby the markers are only displayed on one full view of the map, thus when you scroll into the next view of the repeated map, the previous markers on the previous view will be removed and moved over to the new view.
Thus displaying the markers on all repeated views when moving to the next repeated view is currently not supported.
I hope this answers your question?
MatthewNovember 28, 2022 at 7:56 pm #75489telleidParticipant
Thank you for the explanation, that helps! A couple questions:
Do you know whether the repeat of the view always split over the Pacific for the OpenLayers engine or can it be moved to split e.g. Europe in half? (I figure this is beyond WPG scope though!)
And would the same problem apply if I were to use the Google Maps engine?
Thanks for YOUR patience working through this with me!
DiliaurNovember 29, 2022 at 8:20 am #75493MatthewModerator
Thank you for your response and time on this, I really appreciate it!
Unfortunately the repeat view split is something that is not movable, thus unfortunately this is out of scope.
With regards to using the Google Maps engine, this map engine does not have the same issue as it will display all the markers correctly on the repeating view as your scroll onto the next ‘repeat’ viewport.
Please do let me know if this helps?
MatthewNovember 30, 2022 at 12:05 am #75499telleidParticipant
Understood, and yes, this helps a lot! Thanks for all the info you provided, I really appreciate it 🙂
DiliaurNovember 30, 2022 at 8:49 am #75508MatthewModerator
Thank you for getting back to me and most valued time, I tremendously appreciate it!
I am most happy to hear that, and it was my great pleasure assisting you with this.
Please may you kindly consider reviewing our plugin at https://wordpress.org/support/plugin/wp-google-maps/reviews/#new-post?
It would really mean the world to me! And if possible, please could I kindly ask you to mention both your name and mine in the review for administrative purposes as this would be a tremendous help?
Should you ever require any further assistance, I am more than happy to help.
Have a fantastic day further!
- You must be logged in to reply to this topic.