1. A concise explanation of the problem you’re experiencing.
czml label and scaleByDistance option is not working.
Is it normal??
or is there any thing i miss ??
Thank you!
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
var czml = [{
“id” : “document”,
“name” : “Basic CZML billboard and label”,
“version” : “1.0”
}, {
“id” : “some-unique-id”,
“name” : “AGI”,
“description” : “
Analytical Graphics, Inc. (AGI) founded Cesium.
”,“billboard” : {
“image” : “data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC”,
“scale” : 1.5
},
“label” : {
“fillColor” : {
“rgba” : [255, 255, 255, 255]
},
“font” : “12pt Lucida Console”,
“horizontalOrigin” : “LEFT”,
“pixelOffset” : {
“cartesian2” : [8, 0]
},
“style” : “FILL”,
“text” : “Test_Text”,
“scaleByDistance” : new Cesium.NearFarScalar(1.5e5, 0.1, 1.5e7, 0.01),
“showBackground” : true,
“backgroundColor” : {
“rgba” : [112, 89, 57, 200]
}
},
“position” : {
“cartographicDegrees” : [126.69248300366301, 37.45092668898614, 0.0]
}
}];
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I wanna show many czml label through mariadb
so label shown small to user
label is about building/bus stop/metro station information
4. The Cesium version you’re using, your operating system and browser.
1.59
latest Chrome
Win10 64bit