Mobile Atlas Creator interface looks like this.
Lets define a new atlas! At the left panel, use the "Map source" list box to choose an online data source. In this example I am using Google Maps. The next step is moving the map on the right panel to select the part of the world you desire to show on your application. You can use the mouse to select a rectangular area on the map. The coordinates of this area will appear at the "Selection coordinates" on the top of the left panel (you can also, of course, input the coordinates directly on the N, W, E and S text boxes). After this, click on the check boxes named from 0 to 19 on the "Zoom Levels" option, to select the zoom levels you want to use. I recommend you try from 0 to 15 to follow this tutorial. Type some tittle (for instance, "MyMaps") for your atlas at the "Name" text box, and click the "Add selection" button. The "Atlas Content" box will be filled with the "MyMaps" atlas features you have just defined.
In order to really create your atlas, select "OSMAND tile storage" format on the "Atlas settings" section and click the "Create atlas" button. A dialog will appear, showing the progress of the download of the images and creation of the maps that will compose your atlas.
The resulting atlas will be stored at the "atlases" sub-folder of the Mobile Atlas Creator installation directory, into a new folder named with some identifier like "Unnamed atlas_2011-12-06_232235". Inside this folder you will find another folder named after your selected map source, in this case "Google Maps". Take a look inside this folder. There is a collection of numbered folders. These numbers indicate the zoom levels you have defined, and inside each zoom level folder you will find another collection of numbered folders containing the real tile images, with numbers as names and the extension .png.tile, which is the extension that Osmdroid API will recognize.
You can now set the content of the resulting atlas folder into a ZIP file, lets say "MyMaps.zip" (remember, this content will be a folder named after your online maps source). Our next post will show how to implement our offline map application using this file as its data source. See you soon!


No comments:
Post a Comment