Update polygon.class.js

Apply opacity property to poligon class.