* Map Life Facts and changes to the Google Map Platform

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 22 May 2018 20:04

Whoops! :oops: Sorry!
Don't know how long it has been like that, but now fixed.
No new users can have tried this Plugin for a while, or they would have reported that problem.
[EDIT: On further investigation, these prototypes introduced the problem as an unfortunate side-effect.]

Try attached prototype Map Life Facts Plugin Version 4.1.6 Date 22 May 2018 in a ZIP file.
[ Attachment deleted as now in Plugin Store at Version 4.2. ]

On initial run, the map pane says "Sorry! Something went wrong" but no Status: error until a Geocode Plot ... button used.
It would be nice if the JavaScript could detect that map pane message and direct user to the Help & Advice F.A.Q.
Has anyone any ideas?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 23 May 2018 12:55

I have come up with a better scheme that focusses new users onto creating an API Key.

When run for the first time (or after Restore Defaults), and there are NO plotted locations, and the API Key is not 39 characters, then a popup warning advises about obtaining an API Key.

In addition, whenever the API Key is not 39 characters, then the Plugin Status: says Google Maps API Key Required.

So try prototype Map Life Facts Plugin Version 4.1.7 Date 23 May 2018 in a ZIP file.
[ Attachment deleted as now in Plugin Store at Version 4.2. ]
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 25 May 2018 14:45

During further tests I noticed the main Plugin window can take a long time to appear for large Projects.
This was due to the Locations &/or Individuals data being loaded beforehand.
That data is now loaded after the Plugin window is shown, accompanied by Status: progress messages.

So please checkout Map Life Facts Plugin Version 4.1.8 Date 25 May 2018 in a ZIP file, especially with a large Project.
Try closing and rerunning the Plugin with each of its three main tabs enabled in turn.
[ Attachment deleted as now in Plugin Store at Version 4.2. ]

BTW:
I notice three of you have downloaded the previous Plugin version.
Did you try the 'new user' scenario, and have you any comments on how the API Key requirement is presented to new users?

Thank you for any feedback.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BillH
Megastar
Posts: 2179
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Map Life Facts and changes to the Google Map Platform

Post by BillH » 25 May 2018 18:42

Mike,

I downloaded version 4.1.8 and it seems to work fine.

I used the sample project to test the new user scenario you mentioned earlier this week. Seemed fine to me, but I wanted to run a couple things by you to make sure it is what you expected to see.

I tried with no API key and it showed the status "Geocoder API Key Required see Help & Advice F.A.Q.".
I geocoded a location and the status didn't change. It did geocode the location, but I'm sure that is because the key isn't needed yet.
I geocoded another location and first I got "Quota Exceeded" for lat and long, but quickly this went away and the location was geocoded correctly.

I put in my API key with a couple extra character at the end and tried to geocode a location.
The status stayed the same as above, but I got "Request Denied" for lat and long.

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 25 May 2018 21:25

I hope the plugin main window appears much faster now, and explains why it takes time to get going.

Thanks Bill, but to get the full new user experience you must do a number of things:
  1. Use Family Historian Sample Project and run the Plugin.
  2. Set the API Key to anything invalid, except blank, because at present that is valid as you say.
    (After 11th June then we presume that blank will behave the same way too.)
  3. Click Restore Defaults then Close Plugin.
  4. In the Project ... .fh_data\Plugin Data\ folder, delete the Map Life Facts.dat and Map Life Facts.loc files as they would not exist for a new user.
  5. Now run the Plugin again, and follow the tips provided.
With various Locations already plotted, and changing the API Key without restarting the Plugin, does not represent a new user scenario very closely, and may well produce the inconsistent responses you saw.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BillH
Megastar
Posts: 2179
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Map Life Facts and changes to the Google Map Platform

Post by BillH » 25 May 2018 21:37

Mike,

I followed these steps and got the following.

1. A pop up saying an API Key required to use the plugin.
2. The following error saying "Oops Something Went Wrong...".
image1.jpg
image1.jpg (42.27 KiB) Viewed 12319 times
3. Request Denied when I tried to geocode a location.

Looks good. Is the "Oops message expected?
Last edited by BillH on 25 May 2018 21:49, edited 1 time in total.

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 25 May 2018 21:48

Yes, Oops! is what happens to the Google Mapping API when the API Key is invalid, and is part of the new user experience!

The initial popup instructs the new user where to find out how to obtain the required API Key. Did you follow that?

If you just click OK, then you get what you posted and must follow the ... see Help & Advice F.A.Q. instruction.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BillH
Megastar
Posts: 2179
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Map Life Facts and changes to the Google Map Platform

Post by BillH » 25 May 2018 22:14

Mike,

I see. I didn't follow the hints on the pop-up window.

If I go to the Help and the Geocoder section as it says to do, it describes well what I have to do to get a key.

After putting in my correct code and closing and restarting the plugin, it worked fine.

At first I didn't close and restart the plugin and of course it didn't work right. You might highlight in the help that you must restart the plugin so it is a bit more obvious for folks like me that don't read carefully enough. :oops:

I hope that this need to obtain a key and provide a credit card doesn't dissuade folks from using a great plugin.

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 25 May 2018 23:04

OK, will do.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by Jane » 26 May 2018 17:04

Mike, not for now, but I have found Leaflet JS which uses the same tiles which FH uses, so you might want to consider at some point adding it as an output option for the web pages rather then google maps.

https://leafletjs.com/

Not sure if it's missing any functionality.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by ColeValleyGirl » 26 May 2018 17:09

Leaflet is excellent -- I use it on various (non-genealogy) websites, and will be using it to display the location of individual's events when I next populate my genealogy website. One of the features I particularly like is the ability to cluster markers that are close to each other and uncluster them as the zoom level increases.

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 26 May 2018 17:24

Yes, that might be a worthwhile alternative, mainly because it won't need an API Key for the map display, so will keep the API Key within Plugin.

On a very quick review it lacks the Map v Satellite display option and of course Google Street View.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BillH
Megastar
Posts: 2179
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Map Life Facts and changes to the Google Map Platform

Post by BillH » 26 May 2018 18:00

Mike,

Not sure how others use the output, but those limitations wouldn't be a problem for me as I only use the map and never in street view.

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by ColeValleyGirl » 26 May 2018 18:30

Probably a bit complicated for you, Mike, and not sure how much of this is achievalbe with 'naked' Leaflet (I use it within Drupal) but I use Leaflet to display cluster markers (based on geocoding produced with your Plugin) on top of Bing maps (switchable by the viewer between Road, Satallite and Hybrid layers). When the user clicks on a marker, a picture of the location as it currently is (pulled from Google) is displayed as a link to Google Streetview for the location (which opens in a separate tab).

I'll be putting my updated tree complete with maps live in the next week or so and will try to remember to post a link here.

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 28 May 2018 13:49

Sorry, but I now realise that not only brand new users but also existing users, will need the API Key Required initial popup message until their personal API Key is obtained.
That popup message now has three buttons to focus the user's attention, and the Help & Advice is already on the right page.
Subsequent steps also try and choose the best Plugin tab and Help & Advice page for each stage.

Please try Map Life Facts Plugin Version 4.1.9 Date 28 May 2018 in a ZIP file.
[ Attachment deleted as now in Plugin Store at Version 4.2. ]

The scenario for testing as an existing user is:
  1. Use your existing Project in which the Plugin has been used to create plots.
  2. Set the API Key to anything invalid, or blank, because blank is likely for existing users.
    (i.e. Just add/delete any character or two, so you can easily restore original API Key if you have one.)
  3. Now Close Plugin, then run Plugin again, and follow the tips provided as if new to you.
The scenario for testing as if a brand new user is:
  1. Use Family Historian Sample Project and run the Plugin.
  2. Set the API Key to anything invalid, or blank, which is valid until 11th June.
    (i.e. Just add/delete any character or two, so you can easily restore original API Key if you have one.)
  3. Click Restore Defaults then Close Plugin.
  4. In the Project ... .fh_data\Plugin Data\ folder, delete the Map Life Facts.dat and Map Life Facts.loc files as they would not exist for a new user.
  5. Now run the Plugin again, and follow the tips provided as if a brand new user.
BTW: I will review the https://leafletjs.com/ alternative to Google Maps some time after the 11th June.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BillH
Megastar
Posts: 2179
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Map Life Facts and changes to the Google Map Platform

Post by BillH » 28 May 2018 16:46

I ran it and it looks fine to me.

Thanks!

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 04 Jun 2018 12:46

The Plugin has been downloaded 6 times, but only Bill has responded, so I hope the others found it OK.

Anyway, since the 11th June is almost here, I've published Map Life Facts Version 4.2 Date 04 Jun 2018 in the Plugin Store.

The prototype Plugin versions attached to this thread will be deleted shortly.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
rfield
Diamond
Posts: 63
Joined: 25 Jun 2015 18:41
Family Historian: V7
Location: Winnipeg, Canada
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by rfield » 06 Jun 2018 00:20

The only issue I had when following the instructions was I hadn't realized I had to enable two APIs.
When I saw in the instructions that I could lock down the key to the two APIs a light bulb went off and I enabled the Maps JavaScript API too.
For this Plugin, they can be constrained to just the Geocoding API and Maps JavaScript API.
It's working great.

Thanks Mike!

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 06 Jun 2018 08:45

What state were all the APIs initially?
I found they were all Enabled by default, so the instructions don't say anything about enabling or disabling, only to set quota limits.
But the instructions could easily be modified to say just those two API should be Enabled and the rest Disabled.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
rfield
Diamond
Posts: 63
Joined: 25 Jun 2015 18:41
Family Historian: V7
Location: Winnipeg, Canada
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by rfield » 06 Jun 2018 13:48

I had a feeling that Google may have changed the default.

All APIs were disabled for me.

Ron

User avatar
BillH
Megastar
Posts: 2179
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Map Life Facts and changes to the Google Map Platform

Post by BillH » 06 Jun 2018 16:31

Mike,

If you remember they were all disabled for me as well. Maybe a note to say make sure to enable these two if they are not already enabled by default.

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 06 Jun 2018 17:11

The instructions in plugins:help:map_life_facts:enable_billing_account|> Map Life Facts ~ Enable Billing Account say:
Then click GET STARTED and tick only the Places product on the right before clicking CONTINUE.
Do NOT tick Maps on the left nor Routes in the centre.
Can you confirm that you did tick Places because if only the other two are ticked then no API are enabled.

In plugins:help:map_life_facts:get_personal_api_key|> Map Life Facts ~ Get Personal API Key it now says:
The are many API but only the Geocoding API and Maps JavaScript API need to be enabled for this Plugin.
I have just repeated the process and get the message:
Enable your APIs
This will enable 8 Google Maps Platform API(s) and create an API key for your implementation.
and all 8 API are enabled by default.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BillH
Megastar
Posts: 2179
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Map Life Facts and changes to the Google Map Platform

Post by BillH » 06 Jun 2018 17:22

Mike,

It was awhile ago so can't be absolutely sure, but I am pretty sure I ticked Places. Maybe I ticked both that and Maps. Can't remember. I thought I followed the instructions but I could have made a mistake.

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts and changes to the Google Map Platform

Post by tatewise » 06 Jun 2018 17:38

At that time Bill the [kb]|[/kb] only said tick Places and didn't emphasize not to tick Maps or Routes, so we need a newcomer to confirm what happens now. However, the [kb]|[/kb] does now say which two API must be enabled.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BillH
Megastar
Posts: 2179
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Map Life Facts and changes to the Google Map Platform

Post by BillH » 06 Jun 2018 17:56

Thanks Mike.

Post Reply