Monday 28 February 2011

progress ?

so at this stage i don't have loads of time left however with help i have gotten the map data from the xml from openstreetmap.org into an array :)
at the moment the format it
nd (street id numbers)
ref(a reference number to every latlng for that street)
so all i need to do know is use the ref to get the lat and lng and return it to the array(sounds a lot easier than it is)
making a two dimensional array in javascript isn't that simple because javascript doesn't have a pre defined variable so you have to build an array within an array
http://www.javascriptkit.com/javatutors/twoarray1.shtml(just discovered the link tool)

after i have done that i need to pass the information from the array to a function to make the polly lines for the roads, then add all the markers
my project seems to be full of loops

if i can get this to work soon i need to move to plan B and just randomly place markers over the screen and then just have it so when the user is close to a marker they score points