Ticket #1432 (closed bug: fixed)
propertyStyles of a Style's default symbolizer will not be parsed unless rules are specified
| Reported by: | ahocevar | Owned by: | ahocevar |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.6 Release |
| Component: | Style | Version: | 2.5 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
If the default symbolizer of a StyleMap or Style object has no rules, property styles (i.e. symbolizer properties with values that are replaced by feature property values) will not be parsed.
The expected behaviour would be that
var styleMap = new OpenLayers.StyleMap({
pointRadius: "${size}}"
}
results in features that are sized according to their style property. The current behaviour is that this will be ignored, unless rules are added to the style.
The attached patch fixes the issue. The patch contains a modified test to show the problem. All tests pass in IE6 and FF2.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

