Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ColorLayer] mise à jour du style #2506

Open
Shypster opened this issue Mar 3, 2025 · 0 comments
Open

[ColorLayer] mise à jour du style #2506

Shypster opened this issue Mar 3, 2025 · 0 comments
Labels

Comments

@Shypster
Copy link

Shypster commented Mar 3, 2025

Bonjour,

J'ai un objet ColorLayer dont je souhaite modifier le style à la volée. Toutefois, comment dois-je procéder ? Actuellement, je procède comme ci-dessous mais cela m'engendre des problèmes de rafraichissement du style :

// récupération de ma couche de données
let layerLidar = view.getLayerById('Assemblage LIDAR');

if (layerLidar)
{
// changement du style
layerLidar.style.fill.color='orange';
layerLidar.style.fill.opacity=0.5;
view.notifyChange(layerLidar, true);
}

En vous remerciant,

@Shypster Shypster changed the title [ColorLayer] Update style [ColorLayer] mise à jour du style Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant