Advertisement:

Author Topic: [TIP] Make map region shows transparent fill when mousing over on map themes  (Read 775 times)

lucato

  • Full Member
  • ***
  • Posts: 182
  • [<o>] Brasil
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.
« Last Edit: July 04, 2015, 05:54:58 pm by lucato »