Page 2 of 2

Google Mapping Plugin

Posted: 19 Jul 2011 17:52
by Jane
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

Google Mapping Plugin

Posted: 19 Jul 2011 18:12
by ColeValleyGirl
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.

Google Mapping Plugin

Posted: 19 Jul 2011 18:31
by Jane
It think that might be your web browser. Are you using Firefox, it has a habit of renaming rather than replacing files.

Google Mapping Plugin

Posted: 19 Jul 2011 18:32
by Jane
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.

Google Mapping Plugin

Posted: 19 Jul 2011 18:42
by ColeValleyGirl
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.

Google Mapping Plugin

Posted: 19 Jul 2011 18:53
by Jane
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.

Google Mapping Plugin

Posted: 19 Jul 2011 19:03
by ColeValleyGirl
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.

Google Mapping Plugin

Posted: 19 Jul 2011 19:09
by Graham2004
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

Google Mapping Plugin

Posted: 19 Jul 2011 19:10
by Jane
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.

Google Mapping Plugin

Posted: 19 Jul 2011 19:11
by Jane
Graham, any reason why you don't want to use Long Lat?

Google Mapping Plugin

Posted: 19 Jul 2011 19:16
by Graham2004
None at all, I was just looking at an atlas which enables the user to see the grid postion and mark there correct location.

Google Mapping Plugin

Posted: 19 Jul 2011 19:17
by ColeValleyGirl
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.

Google Mapping Plugin

Posted: 20 Jul 2011 17:12
by Jane
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

Google Mapping Plugin

Posted: 20 Jul 2011 17:38
by ColeValleyGirl
Thanks, Jane.

Google Mapping Plugin

Posted: 20 Jul 2011 21:04
by Cambiz
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).

Google Mapping Plugin

Posted: 20 Jul 2011 21:19
by ColeValleyGirl
It seems to work for me with ', ' between the elements of place...

Google Mapping Plugin

Posted: 20 Jul 2011 23:10
by Cambiz
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

Google Mapping Plugin

Posted: 21 Jul 2011 08:08
by Jane
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!

Google Mapping Plugin

Posted: 13 Aug 2011 11:27
by Jane
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?

Google Mapping Plugin

Posted: 13 Aug 2011 17:27
by Cambiz
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.

Google Mapping Plugin

Posted: 13 Aug 2011 19:27
by Jane
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.

Google Mapping Plugin

Posted: 13 Aug 2011 19:53
by Cambiz
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

Google Mapping Plugin

Posted: 13 Aug 2011 19:54
by Jane
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.

Google Mapping Plugin

Posted: 15 Aug 2011 09:00
by Jane
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.