Map Creation

Step 1 : Store the Shapefiles in the Repository

  1. Save the .shp and .dbf files in a repository location where all users of the map will have read access to them.

    Figure 6.1. Store Shapefiles in the Repository

    Store Shapefiles in the Repository

Note

  • In order for the map to render successfully,
    • The shapefiles must be kept together in the same folder.
    • The naming of .shp and .dbf files must be the same.

Step 2 : Create Map file from .shp file

  1. Select the .shp file that will form the background of your map, right-click and select Define As Map.

    Figure 6.2. Define .shp file as .map file

    Define .shp file as .map file

  2. A default .map file will be created and displayed in the Elixir Workspace as shown in Figure 6.3, “Display default .map file”.

    Figure 6.3. Display default .map file

    Display default .map file

Step 3 : Define Primary Key

  1. Select the .map file and right-click to select Open Properties

  2. Select an appropriate Primary key and click Next.

    Figure 6.4. Select Primary Key

    Select Primary Key

Tip

Why is ADMIN_NAME a more appropriate primary key?

If the base map has many regions, it may be a better choice to show as a hovering legend when the cursor is placed over each region.

Step 4 : Customise Base Map Format

  1. You will see the Map Configuration page is where user can customise the appearance of the map.

  2. Under the Colouring tab, select the type of colouring algorithm desired for the respective regions of the map.

    Figure 6.5. Select Appropriate Colouring Algorithm

    Select Appropriate Colouring Algorithm

  3. Under the Title Tab,

    • Text option : (Optional) Enter a title that will appear on your map.
    • Font option : (Optional) Select the size and colour of the title.
    • Position option : (Optional) Place the title at the top (north), bottom (south), east (right) or west (left) of the map.

    Figure 6.6. Format Title

    Format Title

  4. Under the Legend Tab, select the characteristics of the map legend.

    Figure 6.7. Format Legend

    Format Legend

Tip

  • If you select None, user still be able to see a tooltip based on the map primary key when hovering the mouse cursor over a particular region.
  • If there is handful of coloured regions on the map, user can consider showing colours derived from numeric data, you should consider by enabling the Continuous option (refer to Legend)

Step 5 : Add Map Layer(s) to the Base Map

If you have Map Layers that you wish to add on to the base map, they can be configured here. If not, click on Finish button to complete the creation process.

  1. Click the Add icon and enter the details as follows:

    • Name option : Enter a meaningful name for the map layer.
    • Shapes option : (As an example shown in Figure 6.8, “Format Map Layer”) Enter the URL of the shapefile, for example, repository:/MyMaps/Taiwan/tw_shoppingmalls.shp .
    • Fill option : (Optional) Select the colour to appear in the area of the map layer.
    • Line option : (Optional) Select the colour for the outline of map layer, which is especially useful when representing railroad or highway routes which are usually represented by lines.

    Figure 6.8. Format Map Layer

    Format Map Layer

    Tip

    User can select the layer map .shp file and select Copy to store the location path to the clipboard in order to paste it under the Shapesoption.

  2. When a map layer is added, check the check box to enable the map layer to appear as an overlay on the base map, as shown in Figure 6.9, “Enable Map Layer”. User can click on the Edit icon to modify the earlier configurations if necessary.

    Figure 6.9. Enable Map Layer

    Enable Map Layer

Step 6 : Final Format to Show a Complete Map

If the base map has “fill-regions” data and a particular Colouring Algorithm has already been setup, user can now preview the map with data.

  1. Drag a datasource (the base map .ds file is a good place to start) to anywhere within the Map view and drop it. This is to populate Show Data:with the data from the .ds file.

  2. Select the field name in the drop down list to activate the Colouring Algorithm type chosen. The result will be similar to Figure 6.10, “Map After Show Data”.

    Figure 6.10. Map After Show Data

    Map After Show Data

    Tip

    If a “text” legend is required, user can use GMI_ADMIN as the next best option to describe all regions on the map.

  3. When the mouse cursor hovers over any one region, the region's name will appear, as seen in Figure 6.10, “Map After Show Data”. User can select any field name to experiment how the map will appear with each selection.

    Tip

    In this example, an interesting field name, TYPE_ENG, shows a group of regions under a specific category. Thus, when selecting this field name, user can see that a number of regions are classified under the same colouring tone instead. In this case, Legend is best used to display in order to identify all the categories for each region.

    Figure 6.11. Effect of Data on Colouring

    Effect of Data on Colouring

    Note

    GMI_ADMIN and TYPE_ENG are common field names found in many .dbf files. There are also some .dbf files which do not have such field names or have the same data with different field names.

  4. On the top of Elixir Workspace, there are optional formatting tools to help further to enhance the image of your map.

    • Background option : Select the colour to appear outside the base map area.
    • Foreground option : Select the colour to appear inside the base map area.
    • Lines option : Select the colour for the outline of the regions

    Tip

    • The foreground colour is useful for specifying regions which do not have "fill-regions" data in the .ds file. It helps to contrast the rest of the coloured regions.
    • It is also useful for a base map whose purpose is to show map layers clearly. Thus, the foreground colour should be one that can bring out the clarity of the points on the base map. (Refer to the section called “Map Layers”).