VEModelSourceSpecification Constructor

You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.

Initializes a new instance of the VEModelSourceSpecification Class.

var x = new VEModelSourceSpecification(modelFormat, modelSource, layer);

Parameters

Parameter Description

modelFormat

A VEModelFormat Enumeration value specifying the data format of the 3D model being imported. Optional. The default value is VEModelFormat.OBJ.

modelSource

A string specifying the URL of the 3D model data file. Required.

layer

A VEShapeLayer Class specifying the shape layer into which the 3D model will be imported. Optional. If this parameter is not specified, the 3D model is added to the base layer.