[OpenLayers-Users] KML set transparency

juansre juansre at gmail.com
Fri Jun 21 02:05:54 PDT 2013


Hi.
I'm having problems setting the transparency for my local kml file.
This is the code i'm using:

map.addLayer(new OpenLayers.Layer.Vector("comarcas", 
{
protocol: new OpenLayers.Protocol.HTTP({
url: "comarcas.kml",
format: new OpenLayers.Format.KML({
extractStyles: true,
extractAttributes: true,
transparent: true
})


I've also probed with:
setOpacity: 0.5

But nothing seems to work, and I don't know what i'm doing wrong.
Thanks for your help!!




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/KML-set-transparency-tp5061515.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list