Weird Bug?

39 views
Skip to first unread message

theboo...@gmail.com

unread,
Jun 19, 2024, 10:17:01 PMJun 19
to GEDitCOM II Discussions
This follows on from Richard's question about POIs in the Place record map.

It doesn't seem to apply to the Google map but does apply to the OpenLayers one.

I can add the coordinates and the category for a POI all right.

I can also add the name (eg St Marys Church), BUT, if the name has an apostrophe, as it should,  (eg St Mary's Church) then the map disappears.

Remove the apostrophe and click on the map and it reappears

Mick

M1 Macbook Pro late-2020 Sonoma 14.5 GeditCom II 3.2(1) Default format

Richard Blake

unread,
Jun 21, 2024, 5:26:08 AMJun 21
to GEDitCOM II Discussions
Hi Mick

Good find. I was wondering why OpenLayers maps wasn't working.

John Nairn

unread,
Jun 21, 2024, 12:29:42 PMJun 21
to geditcom-ii-discussions@googlegroups.com geditcom-ii-discussions@googlegroups.com
Yes, that is a bug. I don’t use OpenLayers much because it is slow. In the past, they even moved the code once. They recommend embedding all of OpenLayers in your app, but it is larger than the entire download now.

For google maps, my code is embedding place names using

      title: “St Mary’s Church”

which works fine (note that place names with quotes are correct escape them in the place name). For OpenLayers, however, the separate code is embedding place name using

     label: ’St Mary’s Church’

which messes up the entire map due to misaligned apostrophes. I forget why I did them differently. I just changed OpenLayers code to use quotes instead of apostrophes and that fixed it.

This fix will be in build 2, which I plan to post in a couple of days. If you want to continue with OpenLayers before then, it will work if change “St Mary’s Church” to “St Mary's Church” or use an html entity for the apostrophe. You can change them back when build 2 is out. The other option is to use Google Maps until build 2 is out.

I hadn’t thought of Apple Maps. I will look into that option. Google maps works well, but I have to pay for each access now, although all accounts get a certain number of accesses for free and I have not yet exceeded the free limit. Maybe if thousands more people get GEDitCOM II (pass the word)?

John Nairn

--
You received this message because you are subscribed to the Google Groups "GEDitCOM II Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geditcom-ii-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geditcom-ii-discussions/3acd13ca-6b3e-4573-bd17-e3392f6158d6n%40googlegroups.com.

theboo...@gmail.com

unread,
Jun 22, 2024, 5:42:12 PMJun 22
to GEDitCOM II Discussions
A bit extra on this issue.

Using OpenLayers, if I hover the cursor over a POI, it shows the name of the POI which is nice - see attached.

With Google Maps, it doesn't show anything

Best

MickPOI.jpeg

John Nairn, Developer

unread,
Jun 22, 2024, 8:53:07 PMJun 22
to GEDitCOM II Discussions
I seem to get pop-up name in Google Maps too. It seems slow and times and is much smaller than the OpenLayers pop-up name. Attached is a sample.
Screenshot 2024-06-22 at 5.51.56 PM.png

theboo...@gmail.com

unread,
Jun 22, 2024, 9:25:08 PMJun 22
to GEDitCOM II Discussions
Ah, yes John. Thanks.

That's the difference - at least for me.

Hover in OpenLayers and the popup is virtually instant. With Google just now it took several seconds to appear.

Earlier, when it wasn't appearing quickly, I'd click on the icon. If you do that and leave the cursor in place over the icon, the popup never appears. Move off the icon and go back to it and all is well but still slow.

All good though.

Cheers

Mick

Reply all
Reply to author
Forward
0 new messages