CSCI321 - Project Diary

Wednesday, August 2

Dynamic Updating of Maps

Ok

For the last 3 nights I have been trying to get the Map to update the "current" location of the maker. This was me trying to prove a concept that I could run a query and update the Map if the data/location changed.....after 3 days = 6 hr's, I have finally done it...man... I hate it when I make silly mistakes.

I had the following code

define some vars
createMarker function
onClick function
updateMap function //the bit I was trying to use as Proof Of Concept

create Map function


Now, I had declared the "map" within a function, I was then trying to update this map from another function....dooh...

IT DIDN'T WORK....

WHY....

SCOPE...

once I decalred the map in the "main" it worked a charm. Now I can move onto actually a bit more design...I wrote some ideas down before my CSCI318 lecture today...will post them next. Once I have done that...move onto query of DB, displaying Unit's location...then onto some cool feature we have in mind.

Shawn

0 Comments:

Post a Comment

<< Home