We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Dynamic background color change doesn't work as expected for vector layers.
To Reproduce Steps to reproduce the behavior:
import './style.css'; import {Map, View} from 'ol'; import Graticule from 'ol/layer/Graticule'; function background(resolution) { const color = resolution < 10000 ? '#88f' : '#f88'; console.log(resolution, color); return color; } const map = new Map({ target: 'map', layers: [ new Graticule({ background, }) ], view: new View({ center: [0, 0], zoom: 0, }) });
Expected behavior The background color is changed when the zoom level (resolution) is changed.
The text was updated successfully, but these errors were encountered:
Fix for dynamic backgroundColor
c7b5ad0
closes openlayers#14894
Had this same issue too, thank you for addressing it.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
Dynamic background color change doesn't work as expected for vector layers.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The background color is changed when the zoom level (resolution) is changed.
The text was updated successfully, but these errors were encountered: