Skip to content

Commit

Permalink
Fix #1375 map: cone size on high DPI screens
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Jul 15, 2024
1 parent 8daf5c6 commit 4ad08ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/map-plugin/src/components/MapComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ export class MapComponent extends AbstractComponent {
const fov = MathUtils.degToRad(this.viewer.state.hFov);
const a1 = -Math.PI / 2 - fov / 2;
const a2 = a1 + fov;
const c = this.config.coneSize;
const c = this.config.coneSize * SYSTEM.pixelRatio;

const grad = context.createRadialGradient(0, 0, c / 4, 0, 0, c);
grad.addColorStop(0, this.config.coneColor);
Expand Down

0 comments on commit 4ad08ef

Please sign in to comment.