Operating system requirements: iOS 5.0 or later.
Mobile device: iPad.
This example describes creating a map with the following parameters:
Data is loaded from file.
Color scale is set up.
Timeline and legend are displayed.
The Less, Greater, Between, Equal value formats are set for legend.
Additional buttons are displayed:
To Fit. Changes map scale to fit the map on the mobile device screen.
Invalidate. Fully redraws a map.
Invalidate Overlay. Fully redraws map layers.
Show Labels. Shows labels for all regions.
Hide Labels. Hides labels for all regions.
Forward. Moves timeline slider forward.
Back. Moves timeline slider back.
Reset Timeline. Returns timeline slider to the start point.
Abort. Cancels timeline animation playback.
Stop. Stops timeline animation playback.
Appearance of a map with legend and additional buttons:
AppDelegate.h/.m. Parameters of the application where a map is created.
data.txt. Data file.
Legend_Prefix.pch. Common title.
Localizable.strings. The list of keys and their values used for application localization.
main.m. Main file of source code.
MapDataSource.h/.m. Data get parameters from file.
ViewController.h/.m. Map parameters.
world.svg. Used map topobase.
See also: