We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser: electron I try to get some points,s height on the b3dm model. My code:
(function(){ let angleToRadian = function (angle) { return angle * Math.PI / 180 } let cartographicPosition = new Cesium.Cartographic() // bounds of a rectangle let latlng = { lng: 114.89866264972603, lat: 22.78452730869603 } let latlng1 = { lng: 114.89915774594768, lat: 22.78440290231223 } let lngOffset = (latlng1.lng - latlng.lng) / 10 let latOffset = (latlng1.lat - latlng.lat) / 10 console.log('haha', lngOffset, latOffset) // get 100 points of the react for(let i = 0; i < 10; i++){ let lng = latlng.lng + lngOffset * i for(let j = 0; j < 10; j++){ let lat = latlng.lat + latOffset * j let flag = lng >= latlng.lng && lng <= latlng1.lng && lat >= latlng1.lat && lat <= latlng.lat cartographicPosition.longitude = angleToRadian(lng) cartographicPosition.latitude = angleToRadian(lat) let t1 = Date.now() let h = cesiumManager.cesiumViewer.scene.sampleHeight(cartographicPosition) console.log('====>', h, flag, Date.now() - t1, lat, lng, 'i:' + i, 'j:' + j) } } })()
got results(only first six got correct height):
Then I change the loop j to for(let j = 6; j < 10; j++), got result:
No metter how many times I called scene.sampleHeight, only the first six times got result.
The text was updated successfully, but these errors were encountered:
@lilleyse any ideas?
Sorry, something went wrong.
@dminor112 this might be a long shot but can you try this branch #7289?
Closing this issue due to lack of activity.
No branches or pull requests
Browser: electron
I try to get some points,s height on the b3dm model.
My code:
got results(only first six got correct height):

Then I change the loop j to for(let j = 6; j < 10; j++), got result:

No metter how many times I called scene.sampleHeight, only the first six times got result.
The text was updated successfully, but these errors were encountered: