AW: [OpenLayers-Users] Re: How to display custom labels inside custommarker icon..?

Arnd Wippermann arnd.wippermann at web.de
Thu Mar 17 16:53:23 EDT 2011


Hi,

I don't know, what the error means. I have written a little example to show
how it should work.

Arnd 

-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von dbenedetto
Gesendet: Donnerstag, 17. März 2011 20:19
An: users at openlayers.org
Betreff: [OpenLayers-Users] Re: How to display custom labels inside
custommarker icon..?

I tried to employ your template code (replacing the marker with a vector
layer) but get a javascript error:

"missing: after property id" caused on the line where "use" is assigned
(third line below this one).

pointerEvents: "visiblePainted",
    externalGraphic: "marker.png", //externalGraphic url from attribute url
use "${url}" 
graphicXOffset :  0,
etc...


what value should I be setting inside 'use' ? I tried to use a relative path
to the image - but i'm using an internal image not an external one...

Thanks again for any help you can provide.

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/How-to-display-custom-labels-inside-c
ustom-marker-icon-tp6181272p6182185.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



More information about the Users mailing list