Re: [OpenMap Users] OMText

From: Guillermo Payet <gpayet_at_localharvest.org>
Date: Thu, 3 Mar 2005 12:38:33 -0800

Ah.. that did it. I had been assuming that the fill was the font fill,
not the background. duh..

Thanks

        --G

> If you don't set the OMText fill paint, you should get the effect you
> had before (the default fill paint is transparent).
>
> - Don
>
> On Mar 3, 2005, at 1:41 PM, Guillermo Payet wrote:
>
> >The one other "side effect" of the upgrade to 6.4.2 is that our
> >text labels are showing up as colored blocks. that is, the background
> >is not transparent anymore.
> >
> >Our live site:
> >
> >http://www.localharvest.org/maps/lhmap?latitude=37.0441&longitude=
> >-122.099&scale=1.36
> >
> >The "broken" dev site:
> >
> >http://dev.localharvest.org/maps/lhmap?latitude=37.0441&longitude=
> >-122.099&scale=1.36
> >
> >This is the code that we use to generate the city icons and labels:
> >
> > OMGraphic marker = new OMCircle( latitude, longitude, diam, diam );
> > marker.setStroke(new BasicStroke(weight));
> > marker.setLinePaint(lineColor);
> > marker.setFillPaint(fillColor);
> > loc = new BasicLocation(latitude, longitude, name, null);
> > loc.setLocationMarker(marker);
> > OMText text = new
> >OMText(latitude,longitude,0,0,name,java.awt.Font.decode("SansSerif-"+la
> >belStyle+"-"+labelPtSize),OMText.JUSTIFY_LEFT);
> > text.setLinePaint(textColor);
> > text.setFillPaint(textColor);
> > loc.setLabel(text);
> > loc.setShowLocation(showDots);
> > loc.setShowName(showLabels);
> > group.add(loc);
> >
> >This code is what we've been using since waaaay back in '99. I wonder
> >if there's
> >a more current way to achieve this?
> >
> > --G
> >
> >
> >
> >
> >--
> >Guillermo Payet
> >L O C A L H A R V E S T
> >http://www.localharvest.org
> >
> >Every Morning I awake torn between a desire to save the world and
> >an inclination to savor it. This makes it hard to plan the day.
> >
> > -E.B.White
> >
> >--
> >[To unsubscribe to this list send an email to "majdart_at_bbn.com"
> >with the following text in the BODY of the message "unsubscribe
> >openmap-users"]
> >
> >
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, dietrick_at_bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>

-- 
Guillermo Payet
L O C A L  H A R V E S T
http://www.localharvest.org
Every Morning I awake torn between a desire to save the world and 
an inclination to savor it.  This makes it hard to plan the day.
                                                       -E.B.White
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 03 2005 - 15:39:14 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT