After 2 weeks of wrestling with the Google Map API and Javascript I have an alpha version of GPX Draw. As mentioned in my previous posts I have been looking for a way of geocoding my travel photos but unfortunately I did not have a GPS unit with me while I was travelling but I did keep a day by day diary and the photos are all timestamped hence the idea that if I was able to draw a route of my travels with time information at each point then I will be able to estimate the location where the photo was taken by looking at the timestamp of the photo and relating it to the route information in a GPX file.
You can have a look at what I have so far by clicking on the “GPX Draw Google Map” tab in the header of this page or going to the following location:GPX Draw. The application is orientated towards cycle touring but could be modified for other purposes. This is a preliminary version, I havent done that much testing on it yet so if you find bugs then let me know.
One of the problems that wasted a lot of my time was the fact that firefox on the Mac platform does not send a keydown event when the CTRL or SHIFT buttons are pressed. Originally I wanted to have the application switch to ‘add marker’ mode if the user was holding down the SHIFT key, once the SHIFT key is released the application would go back to ‘add point’ mode. This is very nice for the user and I was very happy with the way it was working on the Linux box but when I tried it on the Mac I found that no keydown events were being generated. After much hacking around and searching for a solution on the web, I ended up having to add a set of radio buttons for switching between modes. As a user friendly measure I have added hot keys (a,z,d) for switching modes (note that the mac does generate keydown events for normal keys but not the modifier keys).
Other problems I had were with pop calendars, until I found the following The DHTML / JavaScript Calendar which is ultimate javascript calendar, plus is it free.
At this stage I am going to start drawing test routes and feeding the generated GPX into PhotoLinker along with the photos to be geocoded.