Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpulkki-mapbox committed Mar 6, 2020
1 parent 13c1506 commit 4472bdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/symbol/collision_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import PathInterpolator from './path_interpolator';
import * as intersectionTests from '../util/intersection_tests';
import Grid from './grid_index';
import {mat4} from 'gl-matrix';
import ONE_EM from '../symbol/one_em';

import * as projection from '../symbol/projection';

Expand Down Expand Up @@ -103,7 +104,7 @@ class CollisionIndex {

const perspectiveRatio = this.projectAnchor(posMatrix, symbol.anchorX, symbol.anchorY).perspectiveRatio;
const labelPlaneFontSize = pitchWithMap ? fontSize / perspectiveRatio : fontSize * perspectiveRatio;
const labelPlaneFontScale = labelPlaneFontSize / 24;
const labelPlaneFontScale = labelPlaneFontSize / ONE_EM;

const tileUnitAnchorPoint = new Point(symbol.anchorX, symbol.anchorY);
const labelPlaneAnchorPoint = projection.project(tileUnitAnchorPoint, labelPlaneMatrix).point;
Expand Down

0 comments on commit 4472bdf

Please sign in to comment.