maptalks / maptalks/maptalks.mapboxgl
地图实例设置cssFilter不起作用
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 60
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
使用MapboxglLayer,给地图实例设置cssFilter不起作用,如何设置
cssFilter baseLayer : new MapboxglLayer('mapboxgl',{
glOptions : {
'style' : 'mapbox://styles/mapbox/satellite-v9',
},
cssFilter: 'filter: invert(0) sepia(0) saturate(1.25) hue-rotate(0deg) brightness(1.15) contrast(1.35) grayscale(0.5)'
})
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing MapboxglLayer handling of the cssFilter option alongside the shown glOptions.style configuration. Reproduce the example with the satellite-v9 style and determine whether the filter is applied to the map instance; done means documenting or correcting the configuration so the requested visual filter takes effect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100