Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2010 at 18:47 UTC
Updated:
19 Oct 2010 at 14:00 UTC
Jump to comment: Most recent file
We should allow overlays to have select styles as well. Here is my use case:
I have to data layers. One uses markers style and one uses a radius style. But, both use the default select style when clicking on it for something like a popup.
Technically we should support per-layer temporary styles as well, but I am not sure about the use case.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | LayerStyles3.patch | 6.37 KB | strk |
| #6 | LayerStyles2.patch | 6.29 KB | strk |
| #4 | LayerStyles.patch | 6.32 KB | strk |
Comments
Comment #1
strk commented+1
The layer_styles array in rendered map would need to be an associative array with
'default', 'select' and optionally 'temp' too.
My use case is I'm using cluster-population-dependent style for my layer, and don't want
the clustering style to be dropped when clicking on the point (select)
Comment #2
tmcw commentedYeah, sounds about right. This will have to break the structure, of course, so we should increment the 'api version' of styles when this and dynamic styles go in.
Comment #3
strk commentedI've started working on this:
http://github.com/strk/dol-6--2/commits/layer_style
Comment #4
strk commentedInitial patch. Retain compatibility with old preset formats.
Comment #6
strk commentedReattaching a version of the patch with no prefix, hopefully making the system checker happier.
NOTE that this patch introduces a conflict with the one for dynamic styles, so I'd like to see this
in ASAP in order to go on with the latter.
Just a word from you guys and I'll commit happly :)
Comment #7
strk commentedThis new version _even_ works :)
[ sorry, my problem is I'm working with styles using dynamic plugins from a branch not having dynamic plugins support ]
Comment #8
strk commentedCommitted http://drupal.org/cvs?commit=431770