Creating Maps

Creating a map

  1. Repeat the steps in the previous section to upload the medford_parks and medford_zoning layers which are included in the zipfile you downloaded in the first section.

  2. Go back to the home page and click the Create Map button.

    ../_images/create_map_link.png
  3. You will be prompted to add layers to your new map. Click the Title column header to sort the layers, then add medford_parks and medford_zoning. (Use Ctrl-click to select multiple layers.)

    ../_images/create_medford_map.png

    Note

    Note that the layers are added in the layer list in the sidebar, but are not visible yet because the extent of the map does not include Medford.

  4. Right click on one of the layers and click Zoom to Layer Extent on the menu.

    ../_images/zoom_to_layer_extent.png
  5. Behold beautiful Medford, Oregon!

    ../_images/medford_map.png
  6. Change Base Map.

    Let’s change our base map from OpenStreetMap to Google Satellite

    TODO: Insert Image here. Default configuration doesnt include Google Satellite..

Saving your map

Now let’s save our map.

  1. Click save and here we have several items we can define as we save the map.

    ../_images/save_map.png ../_images/save_map_dialog.png

    Title - This is the name as it will show up in the map search tool. The name is also displayed on the header at the top of the page.

    Abstract – A short description of the Map. This and the title are used by map search.

  2. Click on the View Info link at the upper right.

    This will take you to the map’s information page. This is like the one you saw at the beginning of this workshop. But because you are the owner of this map, you have additional controls.

    ../_images/map_view_info.png
  3. Set Map Permissions

    Using the widgets at the bottom right, you can make your map private or share with just a couple people or open it to the world. If you want, you can choose to only allow certain people to make changes to your map

    ../_images/set_map_permissions.png

    Note

    You can also control permissions on layers in your Map. If you want, you can create a map which is public and includes some public and some private layers.

Once you have created a Map or loaded new data to GeoNode, a link to that material shows up in your profile where others can see what you have created. If a map or layer is not public for viewing, the name of it will still show up here.

Changing Styles

Note

Users can modify the way a vector (point, line, or area) map is displayed, and control the color of lines or area fills as well as labels. Users can also use rules to support complex symbolization schemes based on database and scale conditions. GeoNode uses an open format for symbolization called SLD (Styled Layer Descriptor). SLDs created can be uploaded to GeoNode and used to symbolize a given layer.

In addition to controlled data sharing, one of the key benefits of GeoNode is cartographic expressiveness. The Style tool allows you to create SLDs or Styled Layer Descriptors which are XML documents that define the way a layer looks.

It is possible to edit map styles and create new styles in GeoNode. In addition you can use desktop tools such as ArcGIS to more easily create complex styles: this is discussed later in the tutorial. Styles are created using one or more rules. Each rule can have several parts, including a label, coloring, scale dependency, and one or more database conditions.

To get to the styling tool from the Map Composer, right click on the layer you wish to style in the layer list, and select Edit Styles from the menu.

../_images/edit_styles.png

At the top of the tool you can choose between existing styles for a given layer, copy an existing style, or edit an existing style, or create a new style from scratch.

../_images/edit_styles_dialog.png

Let’s start by looking at a rule from the currently chosen style. Select the rule and click Edit.

../_images/edit_style_rule.png

There are three tabs containing options for defining the rule you are editing.

../_images/style_rule_dialog.png

Aspects of a rule that you set in the various tabs are cumulative for a rule so for example you create a rule by setting the color in the Basic tab and then a database condition to control when that color is displayed in the Advanced tab.

More Styling details

In the Basic tab it is possible to:

  • Change the name of the style
  • Change its fill and outline color (if it is a polygon)
  • Control opacity of line or fill
  • Control line width and line style
../_images/style_rule_dialog_basic.png

In the Labels tab it is possible to:

  • Select a field to use as content for your labels
  • Choose a font type and size and style for the Label
  • Choose the color for the Label as well as the opacity
  • Choose a halo (background color) for the Label, including its color, size, and opacity
../_images/style_rule_dialog_labels.png

In the Advanced tab it is possible to:

  • Limit the display of whatever you have defined in Basic and Label tabs in terms of maximum display scale and minimum display scale.
  • Limit the display of whatever you have defined in Basic and Label in terms of one or more database conditions. It is also possible to set multiple groups of conditions.
../_images/style_rule_dialog_advanced.png

Editing Layer Properties in the Map Composer

You can edit various details of the layer from within the Map Composer by right-clicking on the layer you wish to edit and selecting Layer Properties

../_images/edit_layer_properties.png

In the About tab, you can edit the layers title, name and abstract

../_images/layer_properties_about.png

In the Display tab, you can edit the layers opacity, format and transparency setting.

../_images/layer_properties_display.png

In the Cache tab, you can choose whether the layer is cached or rendered directly from the data source.

../_images/layer_properties_cache.png

The style tab is equivalent to selecting the Edit Styles option on the right-click menu.

../_images/layer_properties_style.png