OpenLayers OpenLayers

Ticket #1398 (new feature)

Opened 5 months ago

Last modified 2 months ago

alternate rendering of point features

Reported by: achipa Assigned to: ahocevar
Priority: minor Milestone: 2.7 Release
Component: Renderer.SVG Version: 2.5
Keywords: Cc:
State: Needs Discussion

Description

Is there a preferred/suggested way of drawing point features OTHER than a circle ? In #1284 for example a square highlight is drawn (which is technically a point feature). This patch allows defining a pointStyle property which defines whether the node drawn should be a circle, rectangle, etc. Full SVG object insertion/specification seemed a bit of an overkill, but if someone has a better idea, I'm all ears. Also, at this moment I did it only for SVG, a VML patch will come if/when I get consent of getting this into trunk.

Attachments

squarepoint-r6376.patch (1.7 kB) - added by achipa on 02/27/08 09:01:51.

Change History

02/27/08 09:01:51 changed by achipa

  • attachment squarepoint-r6376.patch added.

02/28/08 11:38:37 changed by achipa

  • owner changed from achipa to ahocevar.

Reassigning to ahocevar, I've seen he did some per feature render commits so I guess he has a word or two on this.

@ahocevar: If not, sorry for the inconvenience, just reassign it back to me or whoever you think would be relevant.

06/05/08 19:24:58 changed by tschaub

  • state changed from Review to Needs Discussion.

I would suggest integrating this with sld:Graphic > sld:Mark > sld:WellKnownName.

I have another reason to update the SLD parser, and was going to store the well-known name as symbolizer.mark. So, symbolizer.mark values would be things like "circle" (our default), "square", "triangle", "cross", "x", etc.