Fixed issue #413

- Fixed variable scope
- Added support to polyline opacity change
Merge pull request #466 from marcobiscaro2112/develop

Fixed issue #413