Message from discussion Single timeline events each having multiple map placemarks
Received: by 10.52.32.66 with SMTP id g2mr3301455vdi.5.1336660669170;
Thu, 10 May 2012 07:37:49 -0700 (PDT)
Received: by 10.52.72.100 with SMTP id c4ls1728987vdv.3.gmail; Thu, 10 May
2012 07:37:48 -0700 (PDT)
Received: by 10.52.70.196 with SMTP id o4mr221331vdu.0.1336660668822; Thu, 10
May 2012 07:37:48 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
alanle...@gmail.com designates internal as permitted sender)
Received: by p1g2000vbv.googlegroups.com with HTTP; Thu, 10 May 2012 07:37:48
Date: Thu, 10 May 2012 07:37:48 -0700 (PDT)
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1,gzip(gfe)
Subject: Re: Single timeline events each having multiple map placemarks
From: Alan Leslie <alanle...@gmail.com>
To: "Timemap.js Development" <firstname.lastname@example.org>
Content-Type: text/plain; charset=ISO-8859-1
Thanks for having a look at this and thanks especially for your
The KML files are generated from a csv file using a java program -
(I prefer to use KML files because I can check their syntax by
importing them into Google Earth).
I wanted this program to generate the colours used for the themes.
So the colours used in this example have been generated using the MD5
hash of the artist's name.
I agree that some of these are not good for the map.
I reckon that I should set up a palette of colours used in the map,
compare the generated colour to that palettte and if there is not
enough contrast between the colours generate a new one (by shifting
along the MD5?).
Thanks for mentioning the Flickr example, I didn't have a look at it
when working on this (I looked at the polygon tween example instead).
One problem I found when using OpenLayers was that if the polyline
layer is on top of the marker layer a mouse click does not get through
to the marker layer (the comment in mxn.openlayers.core.js is "//
FIXME: click events hitting this layer don't bubble down to markers").
To get round this I try to make sure that the marker layer is on top
of the polyline layer by arranging that the map KML file starts with a
So I don't think I could use filters for the polylines.
When I started out on this I actually wanted to make a time map for
the Hundred Years' War that shows the battles and the whereabouts of
the Kings of France and England (that shows that Henry V was at
I have completed this now - http://bit.ly/IEWEbL.
For this I have had a couple of issues with the timeline which I have
'fixed' with hacks to:
Timeline.OriginalEventPainter.prototype.paintPreciseDurationEvent - so
that the name is shown on mouseover for long timeline tracks where the
left justified label is often not visible.
Timeline.OriginalEventPainter.prototype._findFreeTrack - so that the
English Kings are on the first track and the French Kings are on the
These hacks are in timeline_hundred_years_overrides.js.