Ticket #2499 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Vector symbol rotation doesn't rotate against center in Safari

Reported by: Lucent Owned by: ahocevar
Priority: major Milestone: 2.9 Release
Component: Renderer.SVG Version: SVN
Keywords: Cc:
State: Complete

Description

Rotating a symbol using the rotation symbolizer apparently does not rotate the symbol around its center in Safari. Tested in 4.0.4 up to today's nightly (55519).

 This is a slightly modified version of the OpenLayers rotation example. All stars are plotted along the same y offset with varying rotations, though they shift left and right and even clip in Safari.

Attachments

openlayers-2499.patch Download (3.2 KB) - added by ahocevar 3 years ago.

Change History

Changed 3 years ago by Lucent

This only appears to happen with some symbols. Star is extremely out of alignment, triangle slightly so, and the others appear on target. My custom symbolizer is also significantly out of alignment.

The demo page now marks the true center the symbol should be rotating around in red, for comparison.

Changed 3 years ago by ahocevar

Changed 3 years ago by ahocevar

  • state set to Review

The attached patch fixes the issue, as can be seen in the graphic-name.html example. Tests still pass. Please review.

Changed 3 years ago by Lucent

  • status changed from new to closed
  • resolution set to fixed

Changed 3 years ago by bartvde

  • status changed from closed to reopened
  • resolution fixed deleted

Please don't close the ticket Lucent, the developer will do that once it gets committed to subversion. You could place a comment stating it works for you.

Changed 3 years ago by bartvde

  • milestone changed from 2.10 Release to 2.9 Release

Changed 3 years ago by bartvde

  • state changed from Review to Commit

Looks good Andreas, please commit.

Changed 3 years ago by ahocevar

  • status changed from reopened to closed
  • state changed from Commit to Complete
  • resolution set to fixed

(In [10136]) fixed rotation center for non-square symbols in non-defs mode (Webkit). r=bartvde (closes #2499)

Note: See TracTickets for help on using tickets.