[OpenLayers-Users] OL2 - layer label opacity
Joseph Armbruster
josepharmbruster at gmail.com
Fri Jul 1 13:43:45 PDT 2016
João,
This is true and the snippet you provided does illustrate all of the
items of interest. In your example, if you add vector.setOpacity(0.2)
before your 'var center' statement, this will illustrate my situation.
You will notice the labels opacity change. What I am looking for is
the fontOpacity to remain the same even if the layerOpacity is
changed.
Is there a trivial way to implement an override?
Thank You,
Joseph Armbruster
On Wed, Jun 29, 2016 at 6:59 PM, João Rodrigues <joaorodr84 at gmail.com> wrote:
> Hi.
>
> I don't know if I understood you question, but there is definitely a
> fontOpacity option.
>
> I made you an example:
>
> http://codepen.io/joaorodr84/pen/XKRWXy
>
> Please, let me know if this is what you asked for.
>
> Kind regards.
>
> João Rodrigues
>
>
>
>
> 2016-06-29 21:02 GMT+01:00 Joseph Armbruster <josepharmbruster at gmail.com>:
>>
>> Hi,
>>
>> Is there a simple way to change the layers label opacity independent
>> of the layers opacity. I have some code that calls into
>> layer.setOpacity and I would like all of my calls to this function to
>> not operate on feature geometry but not the labels. Is this possible?
>>
>> On this topic, should there be a fontOpacity within
>> layer.styleMap.styles.default.defaultStyle?
>>
>> Thank You,
>> Joseph Armbruster
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
More information about the Users
mailing list