Layer settings#

The map is a set of raster and vector layers. three lines Layer tree panel lists the map content and controls layer visibility and order.

To toggle layer visibility, click the eye icon eye.

Layer settings can be opened from the layer menu (icon tree grey dots).

The settings have the following tabs:

  • General - for all layer types;

  • Style - for vector layers;

  • Cache - for vector layers, you can rebuild the cache here.

General settings#

The “General” settings tab shows the following information about the layer:

  • Local path - where the file is located on the device and its exact name.

  • Layer name - you can customize the name under which the layer is displayed on the map.

  • Zoom levels at which the layer is visible on the map. By default, the full range is set - from 0 to 25. You can limit the layer visibility by a specific zoom level range.

../../_images/settings_vector_general_en.png

Fig. 1067. General settings for a vector layer#

../../_images/settings_raster_general_en.png

Fig. 1068. General settings for a raster layer#

Vector Layer Style Settings#

How to open

three lines Layer Tree ‣ tree grey dots Layer Menu ‣ Settings ‣ Style

The available style settings for the vector layer depend on its geometry type and the selected rendering type - simple or rule-based.

Standard rendering#

In standard rendering, all features of the layer have the same color, size, shape (for point features) etc.

For a layer with any geometry, you can configure:

  • Fill color;

  • Stroke color;

  • Stroke thickness;

  • Labels.

There are also settings specific to specific types of geometry:

For example, for layers with several dots point/multipoint geometry, you can set the marker size.

../../_images/style_vector_point_settings_en.png

Fig. 1069. Style settings for a point layer#

../../_images/style_vector_point_result_en.png

Fig. 1070. Two point layers with different marker sizes#

For layers with line linestring/multilinestring geometry, you can specify the line type:

  • solid - only the fill color is applied;

  • dashed line - only fill color is applied;

  • edge - both fill color and stroke color are applied.

../../_images/style_vector_line_settings_en.png

Fig. 1071. Style settings for a linestring layer#

../../_images/style_vector_line_result_en.png

Fig. 1072. Linear layers with different line types: “dashed” and “edge”#

For layers with points with lines polygon/multipolygon geometry, you can enable or disable the fill. Polygon fill, when enabled, is semi-transparent.

../../_images/style_vector_polygon_settings_en.png

Fig. 1073. Style settings for a polygon layer#

../../_images/style_vector_polygon_result_en.png

Fig. 1074. Polygonal layers with and without fill#

Labels#

For any geometry, you can also display the feature labels.

Go to layer menu tree grey dots ‣ Settings. On the Style tab, check the box next to Labels.

There are two options:

  • Individual labels for each feature, the value is taken from the selected field.

  • The same label for all features - just enter the text in the field.

The field used for labels on the map may not be the same as the field used as the feature identifier <https://docs.nextgis.com/docs_ngmobile/source/layer_settings.html#ngmobile-fields-settings>.

../../_images/label_vs_feature_name_en.png

Fig. 1075. 1 - identifier of the selected feature and layer name, 2 - feature label on the map#

Rule-based style#

You can set different colors, sizes, etc. for layer features depending on the attribute values.

To do this, in the Render field select Rule-based. The style settings window changes:

../../_images/style_vector_rulebased.png

Fig. 1076. Vector layer style settings (rule-based rendering).#

The numbers indicate: 1 - rendering type; 2 - selected attribute field; 3 - previously created rules; 4 - “Create New Rule” button; 5 - “Delete Rule” button.

First, select the field that is going to be the base of your styling rules.

Then click New. A list of unique values for the previously selected attribute field will open. Select the value for which you want to create a rule. Next, configure the style for features with this value.

../../_images/style_vector_rulebased_item_en.png

Fig. 1077. Style settings dialog with rule-based rendering#

The parameters are standard, see section Standard rendering. When the style is set, tap OK.

This way, you can create styling rules for each value of the selected attribute field. If no specific rule is set for a value, the default style option is applied. Tap Default style to configure it.

Fields#

How to open

three lines Layer Tree ‣ tree grey dots Layer Menu ‣ Settings ‣ Fields

In this settings block, you can select the attribute field that will be used as the feature ID when you select or edit the feature.

../../_images/style_select_field_en.png

Fig. 1078. Vector layer settings: Fields#

Warning

The selected field will not be used for map labels. Labels can be configured on the style tab Vector Layer Style Settings.