[Mapserver-users] Re: setting outlinecolor in perl mapscript
Lowell Filak
lfilak at medinaco.org
Wed Aug 27 11:53:31 PDT 2003
$style = $class->{styles};
$color->{red} = 153;
$color->{green} = 153;
$color->{blue} = 153;
$style->{outlinecolor} = $color;
I believe addColor is dead in favor of the cleaner styleObj.
The update to classObj will show this evening.
HTH
Lowell
The following message was sent by Hobbes Zatow <hobbes_zatow at yahoo.com>
on Wed, 27 Aug 2003 10:54:55 -0700 (PDT).
> If I have the class in $class:
> $class = $layer->getClass(0);
> How do I get to its style? I can't find any info in
> the docs/wiki correlating classes and the styleObj.
>
> Also, I assume the ColorObj is set by:
> {outlinecolor}->{red} = 153;
> {outlinecolor}->{green} = 153;
> {outlinecolor}->{blue} = 153;
> Or do I need to do something along the lines of:
> {outlinecolor} = $map->addColor(153,153,153);
>
> Thx.
>
> --- Lowell Filak <lfilak at medinaco.org> wrote:
> > The "looks" portion of a class has been moved into
> > styleObj where
> > $style->{outlinecolor} = $colorObj is what your
> > probably looking for.
> > HTH
> > Lowell
> >
> > The following message was sent by Hobbes Zatow
> > <hobbes_zatow at yahoo.com>
> > on Wed, 27 Aug 2003 09:11:02 -0700 (PDT).
> >
> > > I'm having a hard time figuring out how to set the
> > > outlinecolor for a class in perl/mapscript.
> > What's
> > > the correct way to do this using MS4?
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > > http://sitebuilder.yahoo.com
> > > _______________________________________________
> > > Mapserver-users mailing list
> > > Mapserver-users at lists.gis.umn.edu
> > >
> >
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
More information about the MapServer-users
mailing list