Steps to Reproduce
var MapModule = require('ti.map');
var polygon = MapModule.createPolygon({
fillColor: '#123456',
strokeColor: '#123456',
});
Actual Result
Actually there is no property to which would allow to change the opacity of fillColor of polygon.
The only way to achieve that is a workaround with alpha channel for fillColor property, which is not described anywhere:
strokeColor: '#88123456',
It is not possible with name values of colors like :'red', 'blue'
Expected Result
Polygon disctionary should allow setting opacity for fillColor.
var MapModule = require('ti.map');
var polygon = MapModule.createPolygon({
fillColor: '#123456',
strokeColor: '#123456',
fillColorOpacity: 0.5
});
Hello, This seems to be a valid improvement request. Although this need to be reviewed by our selection committee and they will decide whether this should be added in the platform. The process is time-consuming and lots of variable in play. Currently, will have other requests in the pipeline. We will let you know if and when we will be able to make the feature available. Thanks.