Cesium.GeoJsonDataSource.load(data, {
stroke: Cesium.Color.fromBytes(0, 230, 240, 40),
markerColor: Cesium.Color.fromHsl(0, 0, 0, 0.01),
}).then(function(dataSource) {
viewer.dataSources.add(dataSource);function setAirportIcon(entity, top_airport_visit_count) {
billboards.add({
position : entity.position.getValue(viewer.clock.currentTime),
image : airportIcon,
color : new Cesium.Color.fromHsl(0, 0, 1, setOpacity(top_airport_visit_count, entity))
});
}You can see the airport icon, which is my custom billboard, and the cesium default marker. I make the markers transparent so they don't show up to the user, but can still be clicked on for information about that airport. The problem is that the click area is above the billboard, which is confusing for users who can't see the marker.
So, either I'm on the totally wrong track here, or my two options are:
--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/pu5p2dRq1kg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cesium.GeoJsonDataSource.load(data, { stroke: Cesium.Color.fromBytes(0, 230, 240, 40), markerColor: Cesium.Color.fromHsl(0, 0, 0, 0.01), }).then(function(dataSource) { viewer.dataSources.add(dataSource); // Iterate through and style billboards var entities = dataSource.entities.values; for (var i = 0; i < entities.length; ++i) { var entity = entities[i]; if (Cesium.defined(entity.billboard)) { // Entity styling code here
entity.billboard.image = '/anotherImage.png';
}
} });To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.