Archive

Set Opacity of Google Map Event Icons

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

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);}

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

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