9.9. Layer settings

Map is a set of raster and vector layers. Layers tree panel is designed to display the content of a map and to control visibility and hierarchy of map layers.

To change the hierarchy of map layers long-press the layer which is to be moved up or down. Layers tree panel will switch to Edit mode. Keep pressing and move the selected layer to its new position.

For turning layer visibility on/off tap on Layer visibility button (item 3 in Pic. 9.4.).

Additional operations with layers are available from a separate layer contextual menu (item 5 in Pic. 9.4.).

For example, contextual menu for a vector layer includes following items:

  1. Zoom to extent

  2. Attributes

  3. Share

  4. Send to NextGIS

  5. Edit

  6. Delete

  7. Settings

Note

Contextual menu depends both on layer type and geodata source. Raster layers have different contextual menus than Vector layers. Raster layers created from tile cache have different contextual menus than raster layers created from external geoservices.

9.9.1. Vector layer settings

9.9.1.1. Style settings

Open layer contextual menu and tap on “Settings”. Vector layer style settings will open as shown in Pic. 9.75. below.

../../_images/style_vector.png

Pic. 9.75. Vector point layer style settings (simple render style).

The numbers indicate: 1 - Go back; 2 - Layer type & Feature count; 3 - Layer Settings tabs; 4 - Render type; 5 - Feature size; 6 - Feature type; 7 - Color palette; 8 - Stroke width; 9 - Label settings.

Vector layer style settings depend on the selected Render type - Simple or Rule (item 4 in Pic. 9.75.).

9.9.1.1.1. Simple rendering

Pic. 9.75. shows Simple Render style settings. If you select this Render type, all the features in the layer will have the same shape, color, size, etc.

For example, for a point/multipoint layer you can select features shape by using “Type” menu (see item 6 in Pic. 9.75.) using the following options:

  • Point

  • Circle

  • Diamond

  • Cross

  • Triangle

  • Box

  • Edit circle

  • Crossed box

You can also set point size (see item 5 in Pic. 9.75.), fill and stroke color (see item 7 in Pic. 9.75.) and stroke width (see item 8 in Pic. 9.75.).

In linestring/multilinestring layers you can select line type (solid, dash or edge solid), as well as fill and stroke color and stroke width.

In polygon/multipolygon layers you can select stroke color and width. Also you can select to display polygons as filled or empty (the semi-opaque stroke color will be applied if “Filled” is selected).

For any vector layer you can also choose to show Labels for each feature on a map. To do this tick “Text” checkbox and either enter the label text yourself or select the attribute field which will be used to label features on a map (item 9 in Pic. 9.75.).

9.9.1.1.2. Rule-based rendering

You can also use the advanced styling option for your vector layer, and set different shapes, colors, sizes, etc. for layer features based on their attribute values.

For advanced styling of vector layer select “Rule” in the Render. It will open different style settings as shown in Pic. 9.76. below.

../../_images/style_vector_rulebased.png

Pic. 9.76. Vector layer style settings (rule-based render style).

The numbers indicate: 1 - Render type; 2 - Field selection; 3 - “Create new rule” button; 4 - Previously created rules; 5 - “Delete rule” button.

To adjust rule-based style settings first select the attribute field - its values will be used to create rules (see item 2 in Pic. 9.76.).

Then tap on “Create new rule” button (item 3 in Pic. 9.76.). It will open a list of all the unique values from the attribute field you have selected earlier. Select the value and tap “OK” to open Style settings dialogue as shown below in Pic. 9.77..

../../_images/style_vector_rulebased_item.png

Pic. 9.77. Rule-based style settings dialogue.

Here you can select and apply the same style settings as described above in Simple rendering (rule-based style settings are also dependent on vector layer type). Select “OK” when finished.

In this way you can create rule-based render styles for every value in the selected attribute field.

9.9.1.2. Fields settings

You can select which attribute field will be used to provide Feature ID for Edit screens, etc. To do this tap on “FIELDS” tab (see item 3 in Pic. 9.75.) and select one of the fields as shown in Pic. 9.78.

../../_images/style_select_field.png

Pic. 9.78. “FIELDS” vector layer settings tab.

Warning

The selected field will not be used for rendering features labels on the map. For label settings see Style settings.

9.9.1.3. General settings

“GENERAL” settings tab shows such information about vector layer as its local path, layer name & zoom levels to show on the map (it is possible to display the layer within certain zoom levels only). See Pic. 9.79. below.

../../_images/style_vector_general.png

Pic. 9.79. “GENERAL” vector layer settings tab.

Using this tab you can change layer name and zoom levels to show.

9.9.1.4. Cache settings

Using “CACHE” settings tab you can execute “Rebuild cache” command to optimize the layer creation process with the ability to save and cancel changes.

9.9.2. Raster layer settings

Raster layer contextual menu includes the following items (see Pic. 9.80.):

  • Zoom to extent

  • Delete

  • Settings

../../_images/raster_layer_menu.png

Pic. 9.80. Raster layer contextual menu.

Note

Raster layer created from external geoservice will have the option “Download tiles” instead of “Zoom to extent”. See Caching of tile service data for details.

9.9.2.1. Style settings

Open layer contextual menu and tap on “Settings”. Raster layer style settings will open as shown in Pic. 9.81. below.

../../_images/style_raster.png

Pic. 9.81. Raster layer style settings.

Here you can set the values for:

  1. Opacity. The value of layer opacity determines how intensive it hides or displays the contents of the underlying layer. Raster layer with 1% opacity is almost transparent. Completely opaque raster layer has an opacity of 100%.

  2. Contrast.

  3. Brightness.

You can also apply to Raster layer the option “Make grayscale” - the layer will be displayed in shades of gray instead of original colors.

9.9.2.2. General settings

“GENERAL” settings tab shows such information about raster layer as its local path, layer name & zoom levels to show on the map (it is possible to display the layer within certain zoom levels only). See Pic. 9.82. below.

../../_images/style_raster_general.png

Pic. 9.82. “GENERAL” raster layer settings tab.

Using this tab you can change layer name and zoom levels to show.

9.9.2.3. Cache settings

Using “CACHE” settings tab you can set TMS in-memory cache size for a raster layer from these options:

  • No cache

  • 1 screen

  • 2 screens (recommended)

  • 3 screens

You can also clear in-memory cache for this layer from this settings tab.