Re: tooltip

From: PRADEEP RAMACHANDRAN <arpradeep@lycos.com>
Date: Thu Dec 20 2001 - 09:16:32 EST

Hello David,

I am not sure how a shapefile would like, but assumed
that you were referring to the columns in a CSV file.

If that is true then You could use the AreaShapeLayer
and the AreaHandler for the tooltip.The AreaHandler
takes care of laoding the CSV file. You could then
extend the AreaHandler and modify the getGraphics and
RecordList method to add an AppObject for each, the
AppObject could be the name for the county.

You need to have something like the following properties
for your layer to use a CSV file.

areaShape.class=com.bbn.openmap.layer.shape.areas.AreaShapeLayer
areaShape.prettyName=AreaShape
areaShape.shapeFile=share/country/country.shp
areaShape.spatialIndex=share/country/country.ssx
#areaShape.csvFile=share/country/country.csv
areaShape.csvFile=http://pradeepar:8080/country.csv
areaShape.fillColor=ccbdde83
areaShape.lineColor=ff000000
areaShape.selectColor=00330069
areaShape.keyIndex=0
areaShape.nameIndex=0
areaShape.areas=IN IM PK MX NT US

The keyIndex would be areas, these would appear in your
dbf ( or csv )file. The nameIndex could the column index
where the country names are listed.

In case you have only teh dbf file and were wondering
how to get the csv , you save the dbf from MS-Excel as a csv.

Hope this has helped.

Regards,
Pradeep.

--
On Thu, 20 Dec 2001 13:17:30  
 Marklund David wrote:
>Hi All,
>Anyone who has any ideas how to show a tooltip for each polygon in a shape
>file layer ?
>The text (in my case a county name ) is in a column in the shapefile who
>contains about 300 counties.
>
>Is this possible ?
>
>/David
>
>--
>[To unsubscribe to this list send an email to "majdart@bbn.com"
>with the following text in the BODY of the message "unsubscribe openmap-users"]
>
--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation (up to $20,000 in total).  Limit of one registration per person.  Go to http://shop.lycos.com/holidays/sweeps/
--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Dec 20 09:17:28 2001

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT