Hi,
when the onclick event of the layer will be executed, the context/scope will be the automatically the layer itself, but for adding NEW attributes to the layer, an access via the name would be necessary. When the attribute would be already defined, the attribute could be used also directly.
e.g. either:
|
Source code
|
1
2
3
|
...
set(ly.onclick, ... do some stuff ...; set(layer[get(name)].isclicked, true); );
...
|
or:
|
Source code
|
1
2
3
4
|
...
set(ly.isclicked, false);
set(ly.onclick, ... do some stuff ...; set(isclicked, true); );
...
|
Best regards,
Klaus