OpenLayers OpenLayers

Ticket #1433 (closed feature: fixed)

Opened 4 months ago

Last modified 1 month ago

rotation of vector point features

Reported by: ahocevar Assigned to:
Priority: minor Milestone: 2.7 Release
Component: Renderer Version: SVN
Keywords: Cc:
State: Complete

Description

The attached patch adds the capability to specify a rotation property for point symbolizers. This is currently only useful for externalGraphic symbolizers. While this is simple for SVG renderers, the VML implementation is really tricky.

The patch contains tests and an example. All tests pass in FF2 and IE6.

Attachments

1433-r6497-A0.patch (10.3 kB) - added by ahocevar on 03/12/08 11:55:03.
1433-r6522-A1.patch (11.5 kB) - added by ahocevar on 03/14/08 17:27:07.
1433-r6610-A2.patch (12.3 kB) - added by ahocevar on 03/26/08 05:56:55.
modified vml renderer to determine image width and height in an onreadystate handler
1433-r6645-A2.patch (12.9 kB) - added by ahocevar on 03/27/08 13:44:42.
like previous patch, but adds rotation support to Format.SLD.v1 (see #1458)
1433-r6749-A2.patch (13.0 kB) - added by ahocevar on 04/01/08 01:41:51.
Updated patch; example is now formatted properly
1433-r7016-A2.patch (12.8 kB) - added by ahocevar on 04/27/08 08:14:39.
just an update so the patch applies to trunk again correctly
1433-r7045-A2.patch (13.0 kB) - added by ahocevar on 05/01/08 07:14:10.
another update to keep up with trunk
1433-r7016-A2.2.patch (12.8 kB) - added by ahocevar on 05/06/08 16:54:31.
Use this patch for OpenLayers 2.6
1433-r7045-A2.2.patch (13.0 kB) - added by ahocevar on 05/06/08 16:56:17.
Fix for the vml namespace prefix
1433-r7274-A2.patch (13.0 kB) - added by ahocevar on 05/24/08 03:12:56.
just an update that will apply to current trunk (r7274)

Change History

03/12/08 11:55:03 changed by ahocevar

  • attachment 1433-r6497-A0.patch added.

03/12/08 12:19:18 changed by ahocevar

The example depends on #1432.

03/12/08 20:02:16 changed by ahocevar

  • state changed from Review to Needs More Work.

Feature selection does not work yet for the VML renderer.

03/13/08 13:52:23 changed by ahocevar

  • state changed from Needs More Work to Review.

With 1433-r6522-A1.patch, Control.SelectFeature works correctly for VML. This is also shown in the example now.

03/14/08 05:18:54 changed by ahocevar

All tests pass in FF2, IE6 and IE7. Example looks correct in all three tested browsers.

03/14/08 17:27:07 changed by ahocevar

  • attachment 1433-r6522-A1.patch added.

03/26/08 05:56:25 changed by ahocevar

Updated patch; tests still pass in IE6 and FF2

03/26/08 05:56:55 changed by ahocevar

  • attachment 1433-r6610-A2.patch added.

modified vml renderer to determine image width and height in an onreadystate handler

03/27/08 13:44:42 changed by ahocevar

  • attachment 1433-r6645-A2.patch added.

like previous patch, but adds rotation support to Format.SLD.v1 (see #1458)

04/01/08 01:41:51 changed by ahocevar

  • attachment 1433-r6749-A2.patch added.

Updated patch; example is now formatted properly

04/02/08 05:45:28 changed by ahocevar

  • owner changed.
  • version changed from 2.5 to SVN.
  • component changed from general to Renderer.
  • milestone set to 2.7 Release.

04/27/08 08:14:39 changed by ahocevar

  • attachment 1433-r7016-A2.patch added.

just an update so the patch applies to trunk again correctly

05/01/08 07:14:10 changed by ahocevar

  • attachment 1433-r7045-A2.patch added.

another update to keep up with trunk

05/06/08 16:54:31 changed by ahocevar

  • attachment 1433-r7016-A2.2.patch added.

Use this patch for OpenLayers 2.6

05/06/08 16:56:17 changed by ahocevar

  • attachment 1433-r7045-A2.2.patch added.

Fix for the vml namespace prefix

05/06/08 16:58:06 changed by ahocevar

The patches I just added take the changed vml namespace prefix into accont that we use since #1477

05/24/08 03:12:56 changed by ahocevar

  • attachment 1433-r7274-A2.patch added.

just an update that will apply to current trunk (r7274)

(in reply to: ↑ description ) 05/24/08 15:17:45 changed by openlayers

I tested this patch using a vector layer with > 50 features and it worked as described. I find this feature to be useful. In my case, I'm providing web-based near-realtime object tracking via a JSON feed, using AJAX and OpenLayers. The ability to rotate the externalGraphic allows me to indicate direction of moving objects, and also, in some cases, wind direction.

Chander Ganesan chander -at- otg-nc.com

06/06/08 01:13:30 changed by tschaub

  • state changed from Review to Commit.

This looks great Andreas. Thanks for all the VML work in particular. Please commit.

06/06/08 14:42:44 changed by ahocevar

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

(In [7324]) Implemented rotation of externalGraphic vector point features. r=tschaub (closes #1433)