Three-dimensional Digital Sandbox Electronic Sandbox Development Tutorial Lesson 6

Three-dimensional Digital Sandbox Electronic Sandbox Development Tutorial Lesson 6 gis3d.MapGo(103, 30, 19); //The first jump will be a bit slow, mainly to obtain data. If you are using a public network server, it may be stuck. It won’t happen the second time

Running the above code will automatically jump to a point with longitude 103, latitude 30 and level 19.

The following is to add an external 3D model at the mouse click position. Currently only 3ds format is supported.

gis3d.State = GisLib.WindowsMT.GisState.militaryincrease;

gis3d.AddBiaoState = "Add military standard; commonly used\\3D model;";

After setting up, click on the map and a file dialog box will pop up. Just select the corresponding 3ds file. Do you think it is too simple? . . It's actually that simple. And the SDK will automatically calculate the size of the model when adding it. Automatically give an adaptive size and directly enter the editing state. You can directly edit the newly added model and set its properties as shown below:

The editing method is to click the mouse to drag, press and hold the red and blue circles to rotate, move the mouse wheel to adjust the size, hold down the middle mouse button and move it up and down to adjust the height from the ground, and you can check the automatic display option, and the platform will Automatically hide and load the model according to the visible range, so you can add models in a large range without lagging.

Guess you like

Origin blog.csdn.net/qq_37897462/article/details/129427582