Skip to content

ruuhkis/WorldMap

This branch is 54 commits behind johnnylambada/WorldMap:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

John LombardoJohn Lombardo
John Lombardo
and
John Lombardo
Mar 6, 2013
eb28dc5 · Mar 6, 2013

History

76 Commits
Mar 6, 2013
Mar 6, 2013
Mar 6, 2013
Jul 22, 2012
Mar 4, 2013
Apr 10, 2012
Mar 6, 2013
Apr 16, 2012
Mar 6, 2013
Jul 23, 2012
Jul 20, 2012
Mar 6, 2013
Apr 10, 2012
Mar 6, 2013

Repository files navigation

WorldMap is a simple Android app that displays a map of the world taken from Wikimedia (http://upload.wikimedia.org/wikipedia/commons/3/33/Physical_Political_World_Map.jpg), and allows the user to scroll around on it. Note the map is from wikipedia and licensed as public domain (see http://en.wikipedia.org/wiki/File:Physical_Political_World_Map.jpg).

The map itself is quite large (6480,3888), so it's way too big to fit in memory all at once (6480 x 3888 x 16 / 8) = 50,388,480 -- over 48 megs. The VM heap size Android supports is eith 16 or 24 megs, so we can't fit the whole thing in memory at once.

So WorldMap uses the BitmapRegionDecoder API (available as of API 10) to decode just what it needs to display.

WorldMap is available on the Google Play store here: https://play.google.com/store/apps/details?id=com.sigseg.android.worldmap

Road Map
--------
* Add flinging to move quickly across the map

* Work on getting the frame rate up
  * Perhaps use SurfaceView
  * Or glSurfaceView

* backport BitmapRegionDecoder to 2.2 or use a different library with JNI.
  * on SO, Dianne Hackborn says this is non trivial.

* Add zooming to infinite levels
  * start with the map fully unzoomed
  * Calculate where in the world we are once we get to a certain level, then create an intent to start Google Maps.

About

Android Scrolling Background Bitmap Example

Resources

Stars

Watchers

Forks

Packages

No packages published