-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
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
Labels disappearing #3730
Comments
This might be Mac specific. I can't reproduce it on my machine. |
In that case I'm running: OS: OS X El Capitan, Version: 10.11.3 (15D21) Browser: Chrome, Version 49.0.2623.87 (64-bit) |
I can reproduce this on Windows. As I discussed with @TomPed offline, I suspect this happens when the texture atlas is updated or recreated. To reproduce this, click the top of the milk truck, then start click lower spots until you click the bottom of the wheel: |
I have been running into a similar issue with labels and 3D Tiles, might be what @pjcozzi mentioned above. When picking a position (on a 3D Tile) and then placing a label there, a partial label will appear, with some glyphs missing. Should I file a separate issue for this? Can be reproduced in the Cesium Sandcastle:
var labels = scene.primitives.add(new Cesium.LabelCollection());
function addLabel(position, name) {
labels.add({
position: position,
text: name
});
}
document.addEventListener('click', function(event) {
var windowPosition = new Cesium.Cartesian2(event.clientX, event.clientY);
var worldPosition = scene.pickPosition(windowPosition);
addLabel(worldPosition, 'Hello glyphless world');
}); |
@e-andersson I suspect it is the same issue so let's keep it is here unless we determine otherwise. |
This was fixed in #3823. |
This was found during AnalyticalGraphicsInc/cesium-website#982. Here is a .gif of the issue:
And here is the code for this example.
Basically what is happening is when you left click, we are picking the Milk Truck and getting the position from
pickPosition
. Then we are getting the altitude component of the position and adding it as a label. The altitude is also getting logged to the console. If you try click on the roof of the truck (1190m altitude) the label gets added fine. This is also true if you click on the hood of the truck (1188m-1189m altitude). But the second you go to add both of the labels, the labels get messed up.The text was updated successfully, but these errors were encountered: