[OpenMap Users] Labels disappearing

From: JayDub <justcallmejay_at_gmail.com>
Date: Thu, 10 Sep 2009 05:32:47 -0700 (PDT)

Hi all, I override the SHP layer to add OMTextLabeler's. I see them when
zooming but they disappear after the layer is fully painted.

_at_Override
    public synchronized OMGraphicList prepare() {
        OMGraphicList graphicList = super.prepare();
        for(int i = 0; i < graphicList.size(); i++){
            OMGraphic graphic = graphicList.getOMGraphicAt(i);
            OMTextLabeler label = new OMTextLabeler("SOME
TEXT",OMText.JUSTIFY_RIGHT);
            graphic.putAttribute(OMGraphicConstants.LABEL, label);
        }
        return graphicList;
    }

-- 
View this message in context: http://www.nabble.com/Labels-disappearing-tp25382484p25382484.html
Sent from the OpenMap mailing list archive at Nabble.com.
--
[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 Sep 10 2009 - 08:33:24 EDT

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