feat(vector-map): implement line scaling
2 unresolved threads
2 unresolved threads
Closes MIN-66
Merge request reports
Activity
Filter activity
requested review from @KonradAt
added 1 commit
- 582ad35d - feat(vector-map): add layer elements scaling
207 220 }); 208 221 const squareFeature = new Feature({ 209 222 geometry: new MultiPolygon(polygons), 223 style: styles, 224 lineWidth: 1, 210 225 }); 211 squareFeature.setStyle(styles); 226 squareFeature.setStyle(this.styleFunction.bind(this)); 212 227 return squareFeature; 213 228 } 229 230 protected styleFunction(feature: FeatureLike, resolution: number): Style | Array<Style> | void { changed this line in version 4 of the diff
224 lineWidth: 1, 210 225 }); 211 squareFeature.setStyle(styles); 226 squareFeature.setStyle(this.styleFunction.bind(this)); 212 227 return squareFeature; 213 228 } 229 230 protected styleFunction(feature: FeatureLike, resolution: number): Style | Array<Style> | void { 231 const minResolution = this.mapInstance?.getView().getMinResolution(); 232 if (!minResolution) { 233 return []; 234 } 235 const scale = minResolution / resolution; 236 const style = feature.get('style'); 237 const lineWidth = feature.get('lineWidth') * scale; 238 if (style) { changed this line in version 4 of the diff
added 4 commits
-
582ad35d...3ec5d811 - 3 commits from branch
feat/MIN-56-reaction-square
- 003b672b - Merge branch 'feat/MIN-56-reaction-square' of...
-
582ad35d...3ec5d811 - 3 commits from branch
added 1 commit
- 23978147 - refactor(vector-map): rename styleFunction to getStyle
reset approvals from @KonradAt by pushing to the branch
added 18 commits
-
23978147...acd6bc9d - 17 commits from branch
development
- b5fe666c - chore: resolve merge conflicts
-
23978147...acd6bc9d - 17 commits from branch
mentioned in commit 61500424
Please register or sign in to reply