Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20546] Adding opacity property for fillColor in ti.map.polygon

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterCREATIVE KAIZEN
AssigneeUnknown
Created2016-03-10T10:45:00.000+0000
Updated2018-02-28T19:55:28.000+0000

Description

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
});

Comments

  1. Sharif AbuDarda 2016-03-10

    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.

JSON Source