Cesium punctuation does not show the problem

 
 
let lng = this.results[0]._properties._DgLng._value
let lat = this.results[0]._properties._DgLat._value
var Place = the this .viewer.entities.add ({ 
                  position: the this .Cesium.Cartesian3.fromDegrees (LNG, LAT), 
                  Billboard: { 
                    Image: marker 
                  }, 
                  label: { 
                    text: name, 
                    font: '14pt Sans the CN Han the Source ',     // font style 
                    fillColor: the this .Cesium.Color.BLACK,         // font color 
                    backgroundColor: the this .Cesium.Color.AQUA,     // background color 
                    showBackground:to true ,                 // whether the background color 
                    style: the this .Cesium.LabelStyle.FILL,         // label style 
                    outlineWidth: 2 , 
                    verticalOrigin: the this .Cesium.VerticalOrigin.CENTER, // vertical position 
                    horizontalOrigin: the this .Cesium.HorizontalOrigin.CENTER, // horizontal position of 
                    the pixelOffset: new new  the this .Cesium.Cartesian2 (0,30)             // offset 
                  } 
                }) 
                the this  .viewer.camera.flyTo ({
                  Where do you want:the this .Cesium.Cartesian3.fromDegrees (LNG, LAT, 500000), // the final position of the camera 
                  DURATION: 2 
                })

Sometimes the need to receive two parameters: the latitude and longitude to achieve the position of the camera and punctuation 

But try to try just can not jump, then the lng lat can be directly converted to digital

Finally, look through a bit later received documents Cesium.Cartesian3 all types Number

And my lng lat of type String lng lat only need to type can be converted to Number

Guess you like

Origin www.cnblogs.com/reround/p/12186208.html