[OpenLayers-Users] Users Digest, Vol 95, Issue 6
Elton Dise
elton at post.com
Fri Aug 8 19:20:22 PDT 2014
C.
Sent from my iPod
On Aug 8, 2014, at 3:00 PM, openlayers-users-request at lists.osgeo.org wrote:
> Send Users mailing list submissions to
> openlayers-users at lists.osgeo.org
>
> 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
> openlayers-users-request at lists.osgeo.org
>
> You can reach the person managing the list at
> openlayers-users-owner at lists.osgeo.org
>
> 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" <arnd.wippermann at web.de>
> To: "'sulu'" <andreas.siegel at vorarlberg.at>
> Cc: openlayers-users at lists.osgeo.org
> Subject: Re: [OpenLayers-Users] Display WFS-Points as markkp v. C n v h vu vvynv m
> Message-ID: c m vnn<B7AFD3B0FCEC45F99F52B4DB50B34E30 at 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: openlayers-users-bounces at lists.osgeo.org
> [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von sulu
> Gesendet: Donnerstag, 7. August 2014 16:54
> An: openlayers-users at lists.osgeo.org
> 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
> Users at lists.osgeo.org
> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
> End of Users Digest, Vol 95, Issue 6
> ************************************
More information about the Users
mailing list