<a id="ngmobile-layer-settings"></a>

# Layer settings

The map is a set of raster and vector layers. ![three lines](docs_ngmobile/source/_static/ic_layer_tree.png) Layer tree panel lists the map content and controls layer visibility and order.

To toggle layer visibility, click the eye icon ![eye](docs_ngmobile/source/_static/ic_eye.png).

Layer settings can be opened from the [layer menu](https://docs.nextgis.com/docs_ngmobile/source/main.html#ngmob-layer-menu) (icon ![tree grey dots](docs_ngmobile/source/_static/ic_menu_grey.png)).

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.

<a id="ngmobile-tab-general-settings"></a>

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

![image](docs_ngmobile/source/_static/settings_vector_general_en.png)![image](docs_ngmobile/source/_static/settings_raster_general_en.png)

<a id="ngmobile-vector-layer-settings"></a>

<a id="ngmobile-style-settings"></a>

## Vector Layer Style Settings

The available style settings for the vector layer depend on its geometry type and the selected **rendering** type - [simple](https://docs.nextgis.com/docs_ngmobile/source/layer_settings.html#ngmobile-simple-rendering) or [rule-based](https://docs.nextgis.com/docs_ngmobile/source/layer_settings.html#ngmobile-rule-rendering).

<a id="ngmobile-simple-rendering"></a>

### 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](docs_ngmobile/source/_static/ic_type_multipoint.png) **point/multipoint** geometry, you can set the marker size.

![image](docs_ngmobile/source/_static/style_vector_point_settings_en.png)![image](docs_ngmobile/source/_static/style_vector_point_result_en.png)

For layers with ![line](docs_ngmobile/source/_static/ic_type_line.png) **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.

![image](docs_ngmobile/source/_static/style_vector_line_settings_en.png)![image](docs_ngmobile/source/_static/style_vector_line_result_en.png)

For layers with ![points with lines](docs_ngmobile/source/_static/ic_type_polygon.png) **polygon/multipolygon** geometry, you can enable or disable the fill. Polygon fill, when enabled, is semi-transparent.

![image](docs_ngmobile/source/_static/style_vector_polygon_settings_en.png)![image](docs_ngmobile/source/_static/style_vector_polygon_result_en.png)

<a id="ngmob-labels"></a>

### Labels

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

Go to layer menu ![tree grey dots](docs_ngmobile/source/_static/ic_menu_grey.png) ‣ 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>.

![image](docs_ngmobile/source/_static/label_vs_feature_name_en.png)

<a id="ngmobile-rule-rendering"></a>

### 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:

![image](docs_ngmobile/source/_static/style_vector_rulebased.png)

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.

![image](docs_ngmobile/source/_static/style_vector_rulebased_item_en.png)

The parameters are standard, see section [Standard rendering](#ngmobile-simple-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.

<a id="ngmobile-fields-settings"></a>

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

![image](docs_ngmobile/source/_static/style_select_field_en.png)

#### WARNING
The selected field will not be used for map labels. Labels can be configured on the style tab [Vector Layer Style Settings](#ngmobile-style-settings).
