Osclass forums

Support forums => Tips, tricks, and tutorials => Topic started by: lucato on July 04, 2015, 05:49:18 pm

Title: [TIP] Make map region shows transparent fill when mousing over on map themes
Post by: lucato on July 04, 2015, 05:49:18 pm
Hi folks, if you're using the Map Theme and when you mouse over a region it shows a solid color filling. If you want to make this selection area transparent follow this tip:

At the oc-content\themes\"yourcountrymap"\main.php file change the code below from/to:

From:
Code: [Select]

 options = {
                            lineColor:  '#de9200',
                            fillColor:  '#ffa800'
                        }

To:
Code: [Select]

options = {
                            lineColor:  'rgba(250,250,250,0.6)',
                            fillColor:  'rgba(250,250,250,0.6)',
                       
                        }

The 0.6 is the transparency like 60%, so pick the value you want form 0.1-1.0.

Have a nice day.