Skip to content

Commit

Permalink
Merge pull request #580 from openmobilemaps/bugfix/icon-offset
Browse files Browse the repository at this point in the history
Fixes icon offset
  • Loading branch information
bastianmorath authored Jan 25, 2024
2 parents 06e4ed2 + 4595b98 commit aaf1f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/public/SymbolVectorLayerDescription.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class SymbolVectorStyle {
Vec2F getIconOffset(const EvaluationContext &context) {
static const Vec2F defaultValue(0.0, 0.0);
const auto result = iconOffsetEvaluator.getResult(iconOffset, context, defaultValue);
return Vec2F(result.x * context.dpFactor, result.x * context.dpFactor);
return Vec2F(result.x * context.dpFactor, result.y * context.dpFactor);
}

bool getIconOptional(const EvaluationContext &context) {
Expand Down

0 comments on commit aaf1f32

Please sign in to comment.