[OpenMap Users] how do i add a label in my polygon layer?

From: Johnson, Ellen <ejohnson_at_ll.mit.edu>
Date: Tue, 26 Feb 2008 15:32:56 -0500

hi everyone,
  i have a simple map of a polygon layer representing counties read in from a shapefile. i'm using OpenMap in combination with the Repast agent-based toolkit.
  i'm representing these as Repast "agents" where i have a class CountyAgent.java (which implements OpenMapAgent and GisAgent) which owns an OMGraphic to represent the underlying EsriPolygon in the shapefile.
  how to i add a label for the county name (which is in the shapefile) to the polygon display?
  i was able to get the map mouse interpreter/tool tip text working so when i hover over the polygon, it highlights it and displays the name, but i want the polygon name to always appear when i display the layer.
  do i use OMText for this and use an OMGraphicList to wrap both the OMGraphic and OMText?
  thanks!
     ellen


--
[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 Tue Feb 26 2008 - 15:34:46 EST

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