[OpenLayers-Users] Shadow for icons
Admin TrouveTonGull.info
contact at trouvetongull.info
Wed Jul 8 19:13:08 EDT 2009
Andreas Hocevar a écrit :
> yes, that is possible. Use the backgroundGraphic symbolizer property
> with a png image with alpha and opacity.
>
Thanks, but i see the doc
http://dev.openlayers.org/docs/files/OpenLayers/Icon-js.html#OpenLayers.Icon
and there is no documentation for this function :(
So, i see the example http://openlayers.org/dev/examples/marker-shadow.html
and i try
var gullsfr = new OpenLayers.Icon("marker.png");
var shadow = new OpenLayers.StyleMap({backgroundGraphic: "shadow.png"});
var xmlgullsfr = new OpenLayers.Layer.GeoRSS( 'Test', 'test.xml',
{'icon':gullsfr});
map.addLayer(xmlgullsfr, shadow);
And the icons are OK, but there is not shadow on the markers :(
bye,
Fred
More information about the Users
mailing list