6.5. 3D data Styles

6.5.1. General

3D Data Styles are applied to vector layers that need to be created in advance by selecting the appropriate type of NextGIS Web resource (Pic. 6.24.) and uploading objects into it in the ESRI Shapefile or GeoJSON format (Pic. 6.25.).

../../_images/ngw3D_select_vect_layer_en.png

Pic. 6.24. Creating a Vector Layer resource

../../_images/ngw3D_upload_vect_data_en.png

Pic. 6.25. Uploading Vector layer data

Vector layer styling is carried out using the 3D style resource (Pic. 6.26.) which is a child of the vector layer resource.

../../_images/ngw3D_select_3D_style_en.png

Pic. 6.26. 3D style resource

At the first stage of creating a 3D style you must specify its name (Pic. 6.27.).

../../_images/ngw3D_name_3D_style_en.png

Pic. 6.27. 3D style resource name

Permissions, description and metadata are optional settings. The main parameters are set on the 3D style tab.

There are three types of styling for 3D data:

  • 3D style

  • POI

  • Model

6.5.2. 3D Style

3D style - a display of the layer is similar to a 2D web map.

The following options for styling geometric primitives are available:

  • Stroke color

  • Stroke width

  • Fill color

  • Height

You can set constant values or select fields from the vector layer attributes table (ngw3D_settings_3D_style).

../../_images/ngw3D_settings_3D_style_en.png

6.5.3. POI

POI - a style selection from preset icons.

Adjustable parameters (Pic. 6.28.):

  • POI Colour

  • Priority

  • Inverse

  • Limit the number of points that will be rendered on the client with the prioritization

../../_images/ngw3D_poi_3D_style_en.png

Pic. 6.28. POI 3D Style settings

6.5.4. 3D Model

3D Model - styling a vector layer loaded 3D model.

Configurable parameters:

  • 3D model ID - value / field of the layer attributes table, which contains the ID of the 3D model in NextGIS Web (Pic. 6.29.)

  • Scale - value/field of the layer attribute table, which contains the scale of the model display

  • Rotate, degrees - value/field of the attribute table of the layer, which contains the rotation angle of the model in degrees (Pic. 6.30.)

../../_images/ngw3D_id_3D_model_en.png

Pic. 6.29. Resource identifier (id = 116) 3D model

../../_images/ngw3D_grad_3D_model_en.png

Pic. 6.30. 3D Model Style Settings