Pages

Thursday, 17 April 2014

World Map

World Map-1World Map-2
WorldMap is a simple Android app that displays a map of the world taken from Wikimedia, and allows the user to scroll around on it.
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 32 / 8) = 100,776,960 — over 96 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 open source, and the source code is here: Github.com/johnnylambada/WorldMap
Size : 5.8M
Current Version : 2.0.2
Requires Android : 2.3.3 and up
Download

No comments:

Post a Comment