* Google Mapping Plugin

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
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 19 Jul 2011 17:52

Don't worry I think I worked it out, If the most common place was a Long Lat it tried to Geo-code it to centre the map.

I have updated the script again.


BTW I found this site for getting the Long Lat fields and it works pretty well.
http://itouchmap.com/latlong.html

The plugin data is the the Project folder e.g.

Family Historian ProjectsFamily Historian Sample ProjectFamily Historian Sample Project.fh_dataPlugin Data
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: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 19 Jul 2011 18:12

Still getting the same problem, Jane. And every time I download the plugins, they're installed with a number after them, e.g. Map Life Events-5.

I'll email you the files.

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

Google Mapping Plugin

Post by Jane » 19 Jul 2011 18:31

It think that might be your web browser. Are you using Firefox, it has a habit of renaming rather than replacing files.
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
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 19 Jul 2011 18:32

Please try renaming them before you install then or you will probably get the wrong dat files. For example you have lost the geo-code for your location.

I would rename the plug-ins in FH and then double check the Map Geo-Code file has something in it, the one you sent me is empty.
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: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 19 Jul 2011 18:42

Deleted all the relevant plugin data and plugins.
Deleted all previous downloads.
Downloaded and saved files.
Ran the files. They installed with the right name.

Still have the problem -- have emailed you the files. The plugin data is not empty this time (that is, the Map-Geocode maintenance file.) There is no other plugin data file.

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

Google Mapping Plugin

Post by Jane » 19 Jul 2011 18:53

Google couldn't find

Trewcn, Pembrokeshire, Wales

It suggesting
Trewen, Penycwm, Haverfordwest, Dyfed

If you do it manually so it might be worth changing the modern location to that one, if it's the right place.
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: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 19 Jul 2011 19:03

It would help if I could spell. it should have been Trecwn and that works perfectly! Sorry for wasting your time, Jane. And thank you for your work on this -- it's going to be really useful once I've scripted adding it into my web pages.

avatar
Graham2004
Newbie
Posts: 4
Joined: 08 Jun 2004 20:29
Family Historian: None

Google Mapping Plugin

Post by Graham2004 » 19 Jul 2011 19:09

I find the same issue, it puts my city of london location in kent. Given that Google is not handling the location correctly, as already muted, can we not use the OS map grid reference for the area we are concerned about it is very easy to convert an Easting and Northing reference to a grid square.

Someting like
Salisbury Cathedral SU143000

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

Google Mapping Plugin

Post by Jane » 19 Jul 2011 19:10

Excellent, Lua is really good at doing HTML clean up and modification so if you are using standard FH output it's easy to manipulate the pages.
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
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 19 Jul 2011 19:11

Graham, any reason why you don't want to use Long Lat?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
Graham2004
Newbie
Posts: 4
Joined: 08 Jun 2004 20:29
Family Historian: None

Google Mapping Plugin

Post by Graham2004 » 19 Jul 2011 19:16

None at all, I was just looking at an atlas which enables the user to see the grid postion and mark there correct location.

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

Google Mapping Plugin

Post by ColeValleyGirl » 19 Jul 2011 19:17

My existing scripting uses UltraEdit to stitch together FH output and Logicmill output (I like the navigable trees from Logicmill).

I shall have to look at how much effort moving to Lua will be.

Edit: I suppose I could look at using Lua to stitch these maps into the FH output, and then do my stuff with Ultraedit afterwards.

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

Google Mapping Plugin

Post by Jane » 20 Jul 2011 17:12

New Version up for testing, you can now click on the events and the map will scroll to the location for you.

http://www.fhug.org.uk/pushfile.php?fil ... nts.fh_lua
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: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 20 Jul 2011 17:38

Thanks, Jane.

avatar
Cambiz
Famous
Posts: 235
Joined: 26 Sep 2003 23:30
Family Historian: None

Google Mapping Plugin

Post by Cambiz » 20 Jul 2011 21:04

I was surprised when, using my grandfather again, all Cornish events were missing.
I worked out that
Uny Lelant,Cornwall,England
produces a marker on the map but
Uny Lelant, Cornwall, England
whilst being grammatically correct, doesn't.

Of course most of my place records are comma space between places!

Is there a way of either ignoring the spaces
or
producing output that either give a reference or a 'not found' message (or even just the latter).

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

Google Mapping Plugin

Post by ColeValleyGirl » 20 Jul 2011 21:19

It seems to work for me with ', ' between the elements of place...

avatar
Cambiz
Famous
Posts: 235
Joined: 26 Sep 2003 23:30
Family Historian: None

Google Mapping Plugin

Post by Cambiz » 20 Jul 2011 23:10

I ran the plugin, couldn't see Uny Lelant; edited one entry removing the spaces and Cornwall was on the map!

I then noticed that his French WW1 service has disappeared.

I seem to be the only one having problems - is there a maximum number of events/attibutes?

Image

Image

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

Google Mapping Plugin

Post by Jane » 21 Jul 2011 08:08

If you scroll right down the page you should have some errors in red for places it could not place.

I have put up another version, which staggers plotting the locations to try and avoid too many geo-code look ups happening at once, and annoying google.

It means the flags appear one every half a second, but they do appear. I will add a plotting message so you know when it's finished when I get some time.

Google does occasionally plot in strange places, but if you hover on the places you can see what they are and add them in a Long Lat codes or variations on the place names.

For instance Brympton De'Vercy, Somerset, England was plotted in Milton Keynes!
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
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 13 Aug 2011 11:27

I worked out how to resolve the Fact descriptions for Attributes using the FactLabel builtin function and have updated the code for the Map Plugin to use it.

Did anyone test the version with the staggered plotting did it help with the 'missing' plots?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
Cambiz
Famous
Posts: 235
Joined: 26 Sep 2003 23:30
Family Historian: None

Google Mapping Plugin

Post by Cambiz » 13 Aug 2011 17:27

I have just downloaded the latest version and run it against my grandfather.

I've done analysis:
1. Resident tends to put the date to the end of the sentence
e.g.
Resident in Hampstead, Middlesex, England 11 January 1915
Attested (Military) 11 January 1915 in London, England
This may not  to effect the mapping.

2. I have 78 facts, 63 of them have places attached. Of these 63, 52 have mapped (successfully or in the wrong place, but there anyway).
The ones that have not mapped are all (bar one) included in the six RED entries stating (OVER_QUERY_LIMIT). The one is England - whereas France (both just the country, nothing else) is found.
I have been editing the facts tab adding places and have found by including some places it seems to push others out of the found list e.g. Colchester was in my first runs, but not later ones.
One curiousity is that the pointer tab gives different values for some that are listed on the left, e.g. the tab say I have 5 events in Uny Lelant, whereas there are only 4, similarly 10 on the arrow and only 9 exist.
Also curiously Uny Lelant also appears in the RED LIST.
No problem with commas Uny Lelant,Cornwall,England and Uny Lelant, Cornwall, England show.

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

Google Mapping Plugin

Post by Jane » 13 Aug 2011 19:27

Very strange since I staggered the Geo-Coding I have not had any overlimit problems.

Can you check in your Work With Places that you don't have several similar names for your place in Cornwall, the plug in should be combining all the events in the same place, but if any are not quite the same you will have problems.


Any chance you could send me a gedcom with just the one person you are using and him family so I can see if I can reproduce the errors you are seeing.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
Cambiz
Famous
Posts: 235
Joined: 26 Sep 2003 23:30
Family Historian: None

Google Mapping Plugin

Post by Cambiz » 13 Aug 2011 19:53

On its way in a minute.

Oh, another problemette. Created a ged from the main file and then tried running it from the new wjm.ged file. Got this:

Image

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

Google Mapping Plugin

Post by Jane » 13 Aug 2011 19:54

Thanks, I'll try and take a look ASAP, but I have visitors tomorrow, so it's won't be for a couple of days.
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
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 15 Aug 2011 09:00

Hi Chris,

I had a quick play with the file.

The exception was caused by the fact that I was using the plugin settings to get a file to put the temporary version of the html file in and that returns null, when there is no Project.

The reason one Uny Lelant worked and the other did not is you have it in your Work With Places twice once with spaces and once with out.

I increased the delay between plots to 750 (iDelay = iDelay + 750) and all locations are now plotted. You can speed up plotting, by using the Geo-Location plugin to add the Long/Lat numbers to your places.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

Post Reply