You’ll need to turn on the label function (differs per app, not familiar with JSF or geoserver) and use the Name column. If you want to fit the labels better, try the Abbrev column, if you care about details, use the appropriate sov, adm, geounit, geosubunit name columns at the begging of those files.
Thanks, you have pointed me in the right direction here. i been searching on google for examples of using the label function with openlayers and i keep coming across results that show it with a GML format rather than a WMS format which im using:
tiled2 = new OpenLayers.Layer.WMS(
“10m_admin_0_countries – Tiled”, “http://localhost:8080/geoserver/wms”,
{
layers: ‘named_polys:10m_admin_0_countries’,
width: ‘684’,
height: ‘330’,
srs: ‘EPSG:4326’,
format: “image/jpeg”,
tiled: ‘true’,
tilesOrigin : map.maxExtent.left + ‘,’ + map.maxExtent.bottom
},
{
buffer: 0,
displayOutsideMaxExtent: true
}
);
Any more suggestions are appreciated thanks.