Hi,

I have this style:

'var style_pdi = new OpenLayers.StyleMap({
                            "default": new OpenLayers.Style({
                                strokeColor: "#000000",
                                strokeOpacity: .7,
                                strokeWidth: 3,
                                fillColor: "#ff0000",
                                fillOpacity: 0,
                                cursor: "pointer",
                                label: "${nome}",
externalGraphic: "/img/simbologia_layers/pdi/" + "${id}" + ".png"
                                })....'

When I turn on the layer with this style, OL tries to open a image like that '.../undefined.png' despite getting the attribute id value. If I use another attribute like 'name' works. Its some bug with PK? If i run '>>> pontos_interesse_auditados.features[1].attributes.id' in firebug all works well, i receive the id value. In this case 5.

Thanks
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to