Style detections for better visibility

This commit is contained in:
Bryan Housel
2017-07-14 02:32:35 -04:00
parent 590ab7d8b9
commit 802d5707d6
2 changed files with 26 additions and 2 deletions

View File

@@ -66,3 +66,15 @@
z-index: 80;
}
/* Mapillary viewer */
#mly .domRenderer .TagSymbol {
font-size: 12px;
background-color: rgba(0, 0, 0, 0.4);
padding: 0 4px;
border-radius: 4px;
transform: translate(-50%, -120%) !important;
}

View File

@@ -523,7 +523,12 @@ export default {
function makeTag(data) {
var valueParts = data.properties.value.split('--');
if (valueParts.length !== 3) return;
var text = valueParts[1].replace(/-/g, ' ');
var tag;
// Currently only two shapes <Polygon|Point>
if (data.properties.shape.type === 'Polygon') {
var polygonGeometry = new Mapillary
@@ -534,7 +539,12 @@ export default {
data.properties.key,
polygonGeometry,
{
text: data.properties.value
text: text,
textColor: 0xffff00,
lineColor: 0xffff00,
lineWidth: 2,
fillColor: 0xffff00,
fillOpacity: 0.3,
}
);
@@ -547,7 +557,9 @@ export default {
data.properties.key,
pointGeometry,
{
text: data.properties.value
text: text,
color: 0xffff00,
textColor: 0xffff00
}
);
}