[OpenLayers-Dev] Rule subclasses and 2.6

Christopher Schmidt crschmidt at metacarta.com
Mon Apr 7 13:11:26 EDT 2008


On Mon, Apr 07, 2008 at 09:34:34AM -0600, Tim Schaub wrote:
> > Yeah, I'd gotten that far, except I can't figure out how to make a
> > StyleMap *do* anything: I thought that the way to do it was something
> > like StyleMap({default: style, select: select_style}), but then adding
> > that, when I select a feature, it doesn't change, so I guess I'm just
> > doing it wrong. 
> > 
> 
> Hmm.  Could be a spelling error somewhere.  The georss-flickr.html 
> example creates a StyleMap with a "select" rendering intent.

Okay. I'll assume for the time being that I screwed something up
and try to reproduce it. 


> Ah, got it.  Yeah, something like the following works:

Right. I forgot that Infinity is a number.

>      values: [Number.NEGATIVE_INFINITY, 0, Number.POSITIVE_INFINITY]

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list