Skip to content

Commit 736a039

Browse files
andrewkfiedlerrzwiefel
authored andcommitted
DDF-2644 Update convex hull to be transparent, remove z-index adjustment from cesium points
- Previously it was the same color as the cluster it belonged to. Since there isn't a "with certainty" method to make sure that points are above their convex hull in Cesium, it is now transparent. - Z-index adjustment has been removed from cesium points. This was an attempt to make them appear above convex hull outlines, but it ended up causing issues at extreme zoom levels (points would disappear prematurely).
1 parent 608b29b commit 736a039

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

catalog/ui/catalog-ui-search/src/main/webapp/component/visualization/maps/cesium/map.cesium.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var billboardMarker = require('../billboardMarker.hbs');
3333
var clusterMarker = require('../clusterMarker.hbs');
3434

3535
var defaultColor = '#3c6dd5';
36-
var eyeOffset = new Cesium.Cartesian3(0, 0, -1000);
36+
var eyeOffset = new Cesium.Cartesian3(0, 0, 0);
3737

3838
Cesium.BingMapsApi.defaultKey = properties.bingKey || 0;
3939
var imageryProviderTypes = LayerCollectionController.imageryProviderTypes;
@@ -580,8 +580,8 @@ module.exports = function CesiumMap(insertionElement, selectionInterface, notifi
580580
} else if (geometry.constructor === Cesium.PolylineCollection) {
581581
geometry._polylines.forEach(function(polyline) {
582582
polyline.material = Cesium.Material.fromType('PolylineOutline', {
583-
color: determineCesiumColor(options.color),
584-
outlineColor: options.isSelected ? Cesium.Color.BLACK : Cesium.Color.WHITE,
583+
color: determineCesiumColor('rgba(0,0,0, .1)'),
584+
outlineColor: determineCesiumColor('rgba(255,255,255, .1)'),
585585
outlineWidth: 4
586586
});
587587
});

catalog/ui/catalog-ui-search/src/main/webapp/component/visualization/maps/openlayers/map.openlayers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,13 @@ module.exports = function OpenlayersMap(insertionElement, selectionInterface, no
520520
var styles = [
521521
new Openlayers.style.Style({
522522
stroke: new Openlayers.style.Stroke({
523-
color: options.isSelected ? 'black' : 'white',
523+
color: 'rgba(255,255,255, .1)',
524524
width: 8
525525
})
526526
}),
527527
new Openlayers.style.Style({
528528
stroke: new Openlayers.style.Stroke({
529-
color: options.color || defaultColor,
529+
color: 'rgba(0,0,0, .1)',
530530
width: 4
531531
})
532532
})

0 commit comments

Comments
 (0)