Ticket #2755 (closed bug: fixed)
"temporary" sketch style from Vector layer does not get applied to OpenLayers.Handler.RegularPolygon
| Reported by: | zanchin | Owned by: | ahocevar |
|---|---|---|---|
| Priority: | major | Milestone: | 2.10 Release |
| Component: | Handler.RegularPolygon | Version: | SVN |
| Keywords: | Cc: | zanchin | |
| State: | Complete |
Description
If a custom "temporary" sketch style is specified in a styleMap that is given to a Vector layer, none of the RegularPolygon sketches use that style. However, the Point handler does the right thing and uses the temporary style during sketching.
Currently (as of SVN 10517), the activate method of OpenLayers.Handler.RegularPolygon drops options.layerOptions that is passed into the constructor. The fix in the patch below makes the RegularPolygon handler work the same as the Point handler in this case.
Namely, it:
- Doesn't set this.style if a styleMap is specified in layerOptions
- Passes through layerOptions to the temporary Vector layer in activate()
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

