Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
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)
X-BeenThere: timemap-development@googlegroups.com
Received: by 10.52.72.100 with SMTP id c4ls1728987vdv.3.gmail; Thu, 10 May
 2012 07:37:48 -0700 (PDT)
MIME-Version: 1.0
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)
 smtp.mail=alanle...@gmail.com; dkim=pass
 header...@gmail.com
Received: by p1g2000vbv.googlegroups.com with HTTP; Thu, 10 May 2012 07:37:48
 -0700 (PDT)
Date: Thu, 10 May 2012 07:37:48 -0700 (PDT)
In-Reply-To: <CAHfJfVeCTJa_Yf2r6qdLFofxTo_AMAPkWJgALcusBma=GgiDtQ@mail.gmail.com>
References: <aec6d3cc-4b5b-4f9d-9d87-3925c5981ade@n19g2000yqk.googlegroups.com>
 <CAHfJfVeCTJa_Yf2r6qdLFofxTo_AMAPkWJgALcusBma=GgiDtQ@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1,gzip(gfe)
Message-ID: <882af26e-b811-4916-8772-1b56772a5351@p1g2000vbv.googlegroups.com>
Subject: Re: Single timeline events each having multiple map placemarks
From: Alan Leslie <alanle...@gmail.com>
To: "Timemap.js Development" <timemap-development@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Nick

Thanks for having a look at this and thanks especially for your
comments.

The KML files are generated from a csv file using a java program -
https://github.com/alan-leslie/PsuedoGPSTrace
(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
polyline.
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
Agincourt etc.).
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.paintPreciseDurationEvent and
Timeline.OriginalEventPainter.prototype._findFreeTrack - so that the
English Kings are on the first track and the French Kings are on the
second track.

These hacks are in timeline_hundred_years_overrides.js.

Cheers