10.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. 10.4.).

Additional operations with layers are available from a separate layer contextual menu (item 5 in Pic. 10.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.

10.9.1. Vector layer settings

10.9.1.1. Style settings

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

../../_images/style_vector.png

Pic. 10.77. 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. 10.77.).

10.9.1.1.1. Simple rendering

Pic. 10.77. 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. 10.77.) 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. 10.77.), fill and stroke color (see item 7 in Pic. 10.77.) and stroke width (see item 8 in Pic. 10.77.).

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. 10.77.).

10.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. 10.78. below.

../../_images/style_vector_rulebased.png

Pic. 10.78. 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. 10.78.).

Then tap on “Create new rule” button (item 3 in Pic. 10.78.). 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. 10.79..

../../_images/style_vector_rulebased_item.png

Pic. 10.79. 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.

10.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. 10.77.) and select one of the fields as shown in Pic. 10.80.

../../_images/style_select_field.png

Pic. 10.80. “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.

10.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. 10.81. below.

../../_images/style_vector_general.png

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

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

10.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.

10.9.2. Raster layer settings

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

  • Zoom to extent

  • Delete

  • Settings

../../_images/raster_layer_menu.png

Pic. 10.82. 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.

10.9.2.1. Style settings

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

../../_images/style_raster.png

Pic. 10.83. 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.

10.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. 10.84. below.

../../_images/style_raster_general.png

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

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

10.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.