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


Pic. 6.24. Creating a Vector Layer resource


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.


Pic. 6.26. 3D style resource

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


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


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


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


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


Pic. 6.30. 3D Model Style Settings