skip to main content
Developing with design tools > Using the Map Builder > Getting Started > An example map
 
An example map
Guides you through creating an example map and saving it.
*Overview
*Describes data sources used in this example.
*Creating a map
*Explains how to create a new map and add different types of map data.
*Setting map properties
*Explains how to set map properties to display map outlines or relief.
*Adding data to a particular state
*Explains how to enlarge a map area and add data to it.
*Saving the current map
*Explains how to save the current map.
*Adding data to a particular city
*Explains how to zoom in to an area and add data to it.
*Saving the final map
*Explains how to save the final map.
Overview
NOTE This section uses data for demonstration purposes, see Data used in this documentation. For a list of suggested free sources for downloading map data see Map data.
This section shows you how to create a map and save it as a file. This example map could be used in, for example, traffic monitoring on the streets of Los Angeles. The map goes down to street and building level, and uses the Universal Transverse Mercator (UTM) projection.
The finished map consists of the following data sources:
*Shape\World_Countries.shp
Provides the world as a backdrop, although the actual sample is centered on California.
*GeoTIFF\World2_24M.tif
Adds an esthetically pleasing map, mainly for use in the Overview pane.
*GTOPO30-DEM\W140N40.DEM
Provides altitude information that can be used later in the final application.
*GeoTIFF\LA_Houses.tif
Adds details of the houses in relation to the street level views.
*Shape\LA_Streets.shp
Provides a street level view of Los Angeles.
Creating a map
NOTE This section assumes that you have downloaded appropriate data to your workstation. For a list of suggested free sources for downloading map data, see Map data
To create the map containing the data sources described in An example map:
1. Start the Map Builder as described in Running the Map Builder.
2. Choose File>New Map to clear the Map View of any map data.
3. Choose File>Add Map Data to open the file browser, select the GeoTIFF format, and then select the drive where you have downloaded your data. For example, select the data source World2_24M.tif, and then choose Open.
NOTE You can copy all the files to your workstation for faster access.
4. Click the
5.
6. button to fit the whole world into the view.
The following figure shows the resulting Map View pane.
7.
The data source World2_24M
8. Choose File>Add Map Data to open the file browser, select the ESRI/Shape format, and then select the drive where you have downloaded and saved your data. For example, select the data source ESRI/Shape World_countries.shp, and then choose Open.
The following figure shows the resulting Map View pane.
9.
The data source World_countries.shp
Setting map properties
To set map properties:
1. Expand the ESRI/Shape branch and select the World_Countries.shp layer in the Map Layers pane to display the corresponding map style property sheet below it.
2. Scroll down the properties in the map style property sheet and select the Visible in Overview property and check that the value is False so that this data source is not displayed in the Overview pane.
3. Click in the right column of the Line Color property in the map style property sheet, click the
4.
5. button, set the Line Color value to white using the Color Editor displayed and click Apply.
The following figure shows the resulting Map View pane.
6.
Setting the map outline color
7. Select the Filled property in the map style property sheet and set the value to False.
The following figure shows the resulting map relief.
8.
Setting the map relief
Adding data to a particular state
Zooming in on California
*Click the
*
* button on the toolbar and draw a rectangle around the California area to zoom in on it. If necessary, zoom in again to enlarge the map more.
Adding altitude information
1. Choose File>Add Map Data to open the file browser, select the GTOPO30-DEM format, and then select the drive where you downloaded and saved your data. For example, select the data source W140N40.DEM, and then choose Open.
The following figure shows the resulting Map View pane
1.
The Data Source GTOPO30-DEM W140N40-DEM
2. Select the Preferences tab and set the Distances property to International Statute Mile, the Altitudes property to International Foot, and the Coordinates property to UTM.
3. Select the Map Layers tab to redisplay the pane and then click the
4.
5. button to display the whole map in the Map View pane.
The following figure shows the resulting Map View pane.
6.
The data source GTOPO30-DEM W140N40-DEM
Saving the current map
1. Save the current map ““look and feel””. The theme can be saved without the data and applied to other imported data sources, or together with the map data. For more information about themes, refer to Map themes and zoom levels.
2. Choose File>Save Map as in the main menu and select or deselect the Save Theme Only option as required.
NOTE The Save Theme Only option saves only a description of the map, without the data. As a result, saving will be quicker and take less disk space, but the theme may be unusable on another machine that does not have the original data source available.
Adding data to a particular city
Zooming in on LA
*Click the
*
* button, then click and hold the left mouse button on Los Angeles, for example. The map zooms in continuously on the point you have clicked. Do this until the map is zoomed in on Los Angeles.
NOTE To zoom out, press and hold the right mouse button. To pan, press and drag the mouse. The zoom operation pauses as the map pans to the area you want to see.
The following figure shows the resulting Map View pane
*
The Data Source GTOPO30-DEM W140N40-DEM
Adding LA house information
1. Choose File>Add Map Data to open the file browser, select the GeoTIFF format, and then select the drive where you downloaded and saved your data. For example, select the data source LA_Houses.tif, and then choose Open.
2. Drag and drop the GeoTIFF layer to the bottom of the Map Layers pane, open the hierarchy, and click the LA_Houses.tif data source to select it.
3. Click the
4.
5. button to zoom the whole LA_Houses.tif layer into the Map View pane.
6. Click the
7.
8. button, and zoom in on the part of LA_Houses.tif that is of interest. Now zoom in or out using the zoom in\out slider in the Overview pane, until the houses are displayed at the scale you want.
The following figure shows the resulting Map View pane.
9.
The data source LA_Houses
Adding LA street information
1. Choose File>Add Map Data to open the file browser, select the ESRI/Shape format, and then select the drive where you downloaded and saved your data. For example, select the data source LA_Streets.shp and then choose Open.
2. Select the Line Color property and set the Line Color value to white using the Color Editor displayed.
The following figure shows the resulting Map View pane.
3.
The data source LA_Streets
4. Choose Option>Show Tooltips on the Map to enable the display of tooltips when you move the mouse pointer over the map.
5. Click the
6.
7. button, and zoom in on the part of the LA_Houses.tif and LA_Streets.shp data sources that are of interest to you.
The following figure shows the resulting Map View pane.
8.
LA_Streets and LA_Houses
Saving the final map
*Choose File>Save Map As and save the map under the directory and name of your choice.
You have now completed the map and saved it. You can reopen the map at any time and make any changes to it that you want.
To save your current zoom setting, you can also create areas of interest (see Managing areas of interest) which enable you to quickly locate and move between these saved areas.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.