444 | Chapter 12: Model-View-Controller Pattern
regional maps available from the web site. The data is the URLs of the satellite
images corresponding to each region.
The application logic should allow users to manage the state of the application.
Users should be able to set the current region. The view element that draws the
combo bo xneeds to get the list of available regions and the currently selected region.
In addition, the view that displays the satellite image needs to access the URL of the
currently selected region. Let’s develop a model interface (Example 12-12) based on
these requirements.
Figure 12-3. Weather map example application showing a visible map of the East Coast