Skip to content
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

Comments for Cesium KML-CZML Editor #1707

Open
sethjensen1 opened this issue Dec 21, 2020 · 5 comments
Open

Comments for Cesium KML-CZML Editor #1707

sethjensen1 opened this issue Dec 21, 2020 · 5 comments

Comments

@sethjensen1
Copy link
Contributor

sethjensen1 commented Dec 21, 2020

Comments for https://www.endpointdev.com/blog/2020/12/cesium-kml-czml-editor/
By Dmitry Kiselev

To enter a comment:

  1. Log in to GitHub
  2. Leave a comment on this issue.
@alphafox02
Copy link

Not so much an issue, not even sure if this is the correct place to leave this, but I'm wondering if the KML-CZML Editor can change Opacity like Google Earth? I've not found the option. I have KMLs that show the radio freq coverage of an antenna and when I overlay it with your tool it's a solid image with the varies colors covering all that's underneath. In Google Earth I can change the opacity to have a peak at what's underneath while still seeing the shaded colors.

Thanks!

@kiselev-dv
Copy link

Hi @alphafox02 It can for polygons and polylines, just change color opacity.
image

@alphafox02
Copy link

Nice, I think this is just a flat image. I don’t see those options available. I’ll keep trying.

@kiselev-dv
Copy link

Can you attach KML with example?

@ckoval7
Copy link

ckoval7 commented Mar 31, 2021

A flat image shows up as a rectangle, which also has a color property. This can be changed on the fly without reloading the entity.

function loadImageKml(url) {
  kmlsrc = new Cesium.KmlDataSource();
  kmlsrc.load(url);
// Selects the first entity (assuming it's an image) and changes it's opacity to 0.25
// Leave R, G, B set to 1
  kmlsrc.entities.values[0].rectangle.material.color = new Cesium.Color(1, 1, 1, 0.25);
  return kmlsrc;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants