Thursday, 28 October 2010

Google Map and Earthing

This morning I went out to photograph the sunrise, but unfortunately it was rubbish. I waited until about 8.30am to see what would happen when the sun rose above the cloud bank it was behind but the answer was just that the clouds got a bit brighter. The light on the earth was still very diffused and boring.

The rest of the morning I was working on making a custom marker for use in google maps, and getting it working in google maps. I made a number of different coloured versions, with each colour for a different range of images. E.g. a red marker meant one image at that point, purple meant 2-10 images at that point, blue was 11-25 images at that point, etc. I'm not sure if this is actually a good idea or not.

Most of the afternoon and part of the evening I was trying to fix my google earth kml so it would work the same as the google maps. This involved using javascript in google earth, which is quite difficult since I don't think google earth has a debugger. It seems to have some weird bugs as well, e.g. where DOMAIN is a variable containing the site domain (domain.com):
var WWW='http://www'+DOMAIN;
Doesn't work
var WWW='http://www';
Doesn't work
var WWW='http://'+'www'+DOMAIN;
Does work

I haven't got very far with it yet though.

No comments: