Map Player 2.0
From MB Wiki
It would be cool if you could hack around with Google Maps/Yahoo Maps a bit. We will be replacing the three components at MB that use SVG (Map Player, Analyzer and Dot Racing) with Google Maps and perhaps Microsoft virtual Earth. Dot Racing is where we simulate the similar rides to compare...
http://www.motionbased.com/event/tam/
Here would be a recipe for a quick prototype:
- Use whatever maps api you'd Like (Google, Yahoo (AJAX or Flash), Microsoft Virtual Earth)
- Use whatever web server you'd like.
- Drop Media:NationalTrail.gpx and Media:NationalTrail-2.gpx into a webapp.
- Asynchronously Load the GPX from the server. Hint: Google Maps provides a utility to load XML data i believe.
- Draw a polyline from the GPX (know that GMaps seem to like 500 trackpoints or less)
- There is a waypoint in there too so maybe map that.
- Now for the cool stuff...find a CSS slider bar on the Internet somewhere
- Move the slider bar and move a marker along the polyline (just like the map player).
- Bonus... Load the second polyline and run both markers when moving the slider bar.
Described above is the Map Player 2.0 : Compare Mode...the real Dot Racing. Cross Platform compatible, free maps, integrated advertising from Google.
Couple of things to consider...as the slider bar moves, it is best to index into the track by time, not the trackpoint index number. Doing so would now allow time synchronization where trackpoint indexing would incorrectly move the markers
National Trail is one of my favorite MTB trails in Phoenix.
Extra Credit
- Switch between Google Maps, Yahoo Maps and Virtual Earth
- Draw an elevation profile using Flash, Macromedia Flex or http://www.openlaszlo.org/ or http://www.infosoftglobal.com/FusionCharts
Examples
- Brad Culberson (http://www.neocoach.com/mapper/mapper.aspx?f=imbike.gpx,imbike2.gpx,imbike3.gpx,imbike4.gpx&e=brad@getasp.com) (we hired this guy)
- http://www.sabikerides.com/MotionBased.html ... works best in Internet Explorer.
- Funny Face (http://www.joshandkat.com/maps/prototype.html) A little bit of humor in this dot race.
