Skip to content

liszto/UnitySlippyMap

 
 

Repository files navigation

UnitySlippyMap

A slippy map implementation written in C# for Unity3D.

It aims at helping developpers create 2D/3D maps working with a variety of online tile providers (OpenStreetMap, GoogleMaps, Yahoo! Maps, Bing Maps, ...) and offline sources (DBMap, MBTiles, ...) like Route-me (iOS) or Leaflet (HTML5), on every platform supported by Unity3D.

Hopefully, it will also be compliant with a number of popular OGC standards like WMS or GML.

Map objects (tiles, markers, ...) are placed in 3D space along X and Z axis. The idea is to be able to use 3D geometry as terrain or markers with a free camera.

Current status

UnitySlippyMap is in early alpha stage and currently supports tiles from OpenStreetMap or CloudMade (it should work with any provider using OSM tilenames).

It is tested in Unity3D Editor, and on iOS and Android devices.

See the TODO list if you want to contribute and don't know where to start.

License

UnitySplippyMap is released under the LGPL 3.0.

TODO

Here is a short list of what could be fixed or added to UnitySlippyMap:

  • Fix the voodooish way I implemented the camera elevation and tile positioning (see the comments in Map.cs)
  • Fix the 'panning while zooming': gaps appear between tiles
  • Fix the map's behaviour when zoom nears 1 on iOS (something seems to be wrong with the markers' and tiles' positions)
  • Add support for well known tile providers (derive from TileLayer.cs)
  • Add new map objects (polygons, lines, ...)
  • Add support for orthographic cameras
  • Better zoom rounding (>80%, <20%?)
  • Constraint the map to a given 'size', bounce on limits
  • Movements inertia
  • Pop new tiles with transparency

About

A slippy map implementation written in C# for Unity3D

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published