Skip to content

Commit

Permalink
fix: adapt rotation check
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Volland committed Dec 1, 2023
1 parent 785aee9 commit ecd9ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OlStyleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export class OlStyleParser implements StyleParser<OlStyleLike> {
opacity: opacity < 1 ? opacity : undefined,
size,
// Rotation in openlayers is radians while we use degree
rotate: rotation > 0 ? rotation : undefined,
rotate: rotation !== 0 ? rotation : undefined,
offset: displacement[0] || displacement[1] ? displacement : undefined
};
pointSymbolizer = iconSymbolizer;
Expand Down

0 comments on commit ecd9ed4

Please sign in to comment.