ModelSource class
A collection of 3D models @see The online documentation
Constructors
-
ModelSource({required String id, bool batched = false, String? url, double? maxzoom, double? minzoom, List<
String?> ? tiles, List<ModelSourceModel> ? models})
Properties
- batched ↔ bool
-
Whether this source represents a
batched-modelsource instead of amodelsource (the default). Amodelsource is a small, explicit list of models passed via models, each with its own position and orientation. Abatched-modelsource is a tiled source, like a vector tileset, for covering a wide area with many models, configured via url/tiles and minzoom/maxzoom instead of models.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
The ID of the Source.
getter/setter pairinherited
-
maxzoom
→ Future<
double?> -
Maximum zoom level at which to create batched model tiles. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels.
Default value: 18.
no setter
-
minzoom
→ Future<
double?> -
Minimum zoom level for which batched-model tiles are available
Default value: 0.
no setter
-
models
→ Future<
List< ModelSourceModel> ?> -
Defines properties of 3D models in collection. Requires
modelsource type.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tiles
→ Future<
List< String?> ?> -
An array of one or more tile source URLs, as in the TileJSON spec. Requires
batched-modelsource type.no setter -
url
→ Future<
String?> -
A URL to a TileJSON resource. Supported protocols are
http:,https:, andmapbox://<Tileset ID>. Required iftilesis not provided.no setter
Methods
-
bind(
StyleManager style) → void -
inherited
-
getType(
) → String -
Get the type of the current source as a String.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited