[OpenLayers-Users] Display WFS-Points as markers

Arnd Wippermann arnd.wippermann at web.de
Mon Aug 4 12:36:54 PDT 2014


You only have to add a styleMap to your wfs vector layer

styleMap: new OpenLayers.StyleMap({
            externalGraphic: '../img/marker.png',
            graphicWidth: 20, graphicHeight: 24, graphicYOffset: -24,
            title: '${tooltip}'
        })

See: http://openlayers.org/dev/examples/osm-marker-popup.html 

Regards,
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: Montag, 4. August 2014 16:12
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] Display WFS-Points as markers

Hello!

I have a functioning Point-WFS-Layer which displays nicely.

But instead of Points i would like to have markes or popups at the
points-locations.

How can i iterate through the WFS-data in order to place the markers?

I could not figure out a way to geht hold of the individual features.


Cheers
Andy  





--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Display-WFS-Points-as-markers-tp5154974.
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



More information about the Users mailing list