[OpenMap Users] OMText

From: Guillermo Payet <gpayet_at_localharvest.org>
Date: Thu, 3 Mar 2005 10:41:32 -0800

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-"+labelStyle+"-"+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"]
Received on Thu Mar 03 2005 - 13:42:48 EST

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