C. Sent from my iPod
On Aug 8, 2014, at 3:00 PM, [email protected] wrote: > Send Users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/openlayers-users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Users digest..." > > > Today's Topics: > > 1. Re: Display WFS-Points as markers (Arnd Wippermann) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 7 Aug 2014 21:51:30 +0200 > From: "Arnd Wippermann" <[email protected]> > To: "'sulu'" <[email protected]> > Cc: [email protected] > Subject: Re: [OpenLayers-Users] Display WFS-Points as markkp v. C n v h vu > vvynv m > Message-ID: c m vnn<B7AFD3B0FCEC45F99F52B4DB50B34E30@pcawh2> bi > Content-Type: text/plain; charset="iso-8859-1"go o kno > > You can style your features by attributes > > see > > http://openlayers.org/dev/examples/styles-context.html > > > // create the layer styleMap by giving the default style a context > var colors = ["red", "green", "blue"]; > var context = { > getColor: function(feature) { > var region = parseInt((feature.geometry.x + 180) / 120); > return colors[region]; > }, > getSize: function(feature) { > return feature.attributes["type"] / map.getResolution() * ..703125; > } > }; > var template = { > pointRadius: "${getSize}", // using context.getSize(feature) > fillColor: "${getColor}" // using context.getColor(feature) > }; > var style = new OpenLayers.Style(template, {context: context}); > > var layer2 = new OpenLayers.Layer.Vector('Points', { > styleMap: new OpenLayers.StyleMap(style), > renderers: renderer > }); > > Gru?, > Arnd > > -----Urspr?ngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von sulu > Gesendet: Donnerstag, 7. August 2014 16:54 > An: [email protected] > Betreff: Re: [OpenLayers-Users] Display WFS-Points as markers > > Uh! That looks very promising! > > Thanks again Arnd! > > Now im wondering if there is a feature like "getElementsByTagName" (found in > an example for GeoRSS)? > > That would allow for a dynamic construction for the features (e.g tooltip or > externalGraphic) > > > Regards, > Andy > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Display-WFS-Points-as-markers-tp5154974p > 5155439.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > --- > Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz > ist aktiv. > http://www.avast.com > > > > ------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > End of Users Digest, Vol 95, Issue 6 > ************************************ _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
