All Apps and Add-ons

Set Opacity of Google Map Event Icons

graceam
New Member

First off, this is a great app and functions perfectly for my needs. One questions though, is there a way to adjust the opacity of the event icons on the Google Maps view? When I have many events worldwide it is difficult to make out what's underneath all of the icons. Just looks like a colorful blob. Thank you much!

Aaron

Tags (1)
0 Karma

ziegfried
Influencer

This is a good enhancement request. I'll add this as an option in the version of the app. In the meanwhile you can edit the CSS file of the GoogleMaps module and hardcode the opacity for all markers:

$SPLUNK_HOME/etc/apps/maps/appserver/modules/GoogleMaps/GoogleMaps.css:

add something like this to the cluster-icon style:

opacity: 0.6; filter: alpha(opacity=60);

so for example line 4 of the css file could look like:

.cluster-icon { color: black; cursor: pointer; position: absolute; font-family: Arial, sans-serif; font-size: 11px; font-weight: bold; text-align: center;-moz-user-select:none;-webkit-user-select:none; opacity: 0.6; filter: alpha(opacity=60);}

ziegfried
Influencer

Can you post the edited css file on pastebin and share a link? Did you restart Splunk? What browser are you using and did you force-reload or clear the browser cache?

0 Karma

graceam
New Member

It didn't work for me. I change line 4 of my GoogleMaps.css file to match the one you showed above. When that didn't work I went ahead and added the same opacity parameter statement to lines 5-9 as well. Icons still not "see through" on the map. Thanks anyway, looking forward to the next release!

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...