We use Mapinfo MapXtreme 2.0  to build layers from database tables(we
use SpatialWare).
I want to change the default layer symbols. I can change them to a
custom symbol with the code.

Rendition rend = new Rendition();
rend.setValue( Rendition.SYMBOL_URL, "file:images/" + gifName );
rend.setValue( Rendition.SYMBOL_TYPE, Rendition.SYMBOL_TYPE_CUSTOM );
OverrideTheme oThm = new OverrideTheme( rend, "drawSymbol" );
mapJ.getLayers().getLayer( layerName ).getThemeList().add( oThm );

And it works fine!
But I can't use default symbols shipped with MapXtreme! We have a
client/server architecture. We don't use the MapXtreme Server. We just
use the java api. How can my application know about the symbols path?
The code following code doesn't work.

rend.setValue( Rendition.SYMBOL_TYPE, Rendition.SYMBOL_TYPE_FONT );
rend.setValue( Rendition.SYMBOL_FONT_NAME, "Map Symbols" );
rend.setValue( Rendition.SYMBOL_CHAR, 32 );

Please help. Thanks in advance!
Dyrson



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to