Hi, Set extractStyles to false
and add the following style to your layer after layer creation. It should also be possible to declare the style in the layer constructor. var styleMapLabel = new OpenLayers.StyleMap({'default':{ strokeColor: "#00FF00", strokeOpacity: 1, strokeWidth: 3, fillColor: "#FF5500", fillOpacity: 0.5, pointRadius: 6, pointerEvents: "visiblePainted", label : "${description}", //label : "name: ${name}, age: ${description}", fontColor: "red", fontSize: "12px", fontFamily: "Arial", fontWeight: "bold", labelOffsetX: 10, labelOffsetY: 10 //labelAlign: "${align}" }}); map.layers[1].styleMap = styleMapLabel; map.layers[1].redraw(); Arnd -----Ursprüngliche Nachricht----- Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von maning sambale Gesendet: Donnerstag, 10. September 2009 09:13 An: OpenLayers-Users Betreff: Re: [OpenLayers-Users] using openlayers as map interfacefordownloading pdf maps Hi, In doing this webmap I have sample here: http://forest2002.essc.org.ph/test_map/ What I want next is to: 1. show kml layer label in the map for each polygon (mapsheet name and number) 2. highlight color for the selected feature, either this one: http://openlayers.org/dev/examples/highlight-feature.html or this http://gis.ibbeck.de/ginfo/apps/planwerk/planwerk_nordbahntrasse.asp Any advise? On Thu, Sep 10, 2009 at 12:08 AM, Arnd Wippermann <arnd.wipperm...@web.de> wrote: > Hi, > > Have a look at > http://gis.ibbeck.de/ginfo/apps/planwerk/planwerk_nordbahntrasse.asp. > > A click on a feature generates a link above the map for download of a pdf. > > Arnd > > -----Ursprüngliche Nachricht----- > Von: users-boun...@openlayers.org > [mailto:users-boun...@openlayers.org] Im Auftrag von maning sambale > Gesendet: Mittwoch, 9. September 2009 12:41 > An: OpenLayers-Users > Betreff: [OpenLayers-Users] using openlayers as map interface > fordownloading pdf maps > > Hi, > > We have prepared 1:250k sacle pdf topo maps for download. I want to > use openlayers as an interface for downloading. The plan is to show > the map boundingbox as a kml layer or georss over a slippymapy. Each > box would provide a link to the pdf download. Any sample I can work with. > > Thanks in advance. > -- > cheers, > maning > ------------------------------------------------------ > "Freedom is still the most radical idea of all" -N.Branden > wiki: http://esambale.wikispaces.com/ > blog: http://epsg4253.wordpress.com/ > ------------------------------------------------------ > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users