Open
Description
I am using below code to add a 3d model and used to scale mode as VIEWPORT, still it is scaling the model as per the current zoom level. I want the model to be of the same size on the screen irrespective of the zoom level. I am using mapbox_maps_flutter v2.6.2.
await mapboxMap?.style.addSource(GeoJsonSource(id: "sourceId", data: json.encode(modelPoint)));
double scale = 10;
var modelLayer = ModelLayer(id: "modelLayerId", sourceId: "sourceId");
modelLayer.modelId = modelAssetPath;
modelLayer.modelScale = [scale, scale, scale];
modelLayer.modelScaleMode = ModelScaleMode.VIEWPORT;
modelLayer.modelRotation = [0, 0, 180];
modelLayer.modelType = ModelType.LOCATION_INDICATOR;
await mapboxMap?.style.addLayer(modelLayer);
Metadata
Metadata
Assignees
Labels
No labels