OpenStreetMap for unity iPhone

Author: Mark Hessburg (VIC20)

Description
This is a simple OpenStreetMap script, it requires unity iPhone but should work in simulation mode with the normal unity. It loads OpenStreetMap Tiles based on your current (or while running in the Editor simulated) position. It scrolls the map by following GPS movements (or simulated location updates). You can set the useFAKEDmovement Variable to simulate movement of the iPhone in the Editor. Set Variable OSMZoom for different zoom levels (1-18). Just download the prepared Project, do a quick Build&Run and make a little test drive, it's pretty accurate (after one or two kilometers you might discover a map scrolling bug which still needs a fix.)

To do List (please help)

 * Add OSM Icon - REMEMBER: OpenStreetMap license requires to display an OpenStreetMap-Icon when showing the Map
 * Fix Map Scrolling Bug
 * Delete OS-Tiles from memory (otherwise iPhone will crash due to memory leak)
 * Add User-TouchInterface
 * Add a smooth touch Zoom
 * Cache Tiles to disk (to avoid useless internet access)
 * Rotate Tiles and add Compass/Heading - in other words: don't use GUITexture anymore. (Rotation will require the unity |iPhone expansion pack by Rob terrel to access the 3GS Compass or GPS Heading add "newLocation.course" to the enhancement pack to get the GPS heading - or |prime31's CoreLocation which is able to handle both GPS and compass)
 * Find a way to increase download speed of the tiles and try to reduce tiles from 25 to 15
 * Get rid of the terrible Spaghetti-Code! :-)

Project download
[[Media:OpenStreetMap_unity_iPhone.zip|Click here to DOWNLOAD the Original Project (javascript).]]

link New C# Version by silentchujo

Thread
link Forum thread