Fixed issue #413

- Fixed variable scope
- Added support to polyline opacity change