Layer opacity

Events happening in the community are now at Drupal community events on www.drupal.org.
kartagis's picture

Hi,

I've created 3 blocks for 3 different maps, and I'm looking to display it in the same area. I've played with the CSS a little (position: absolute) to be able to display blocks on top of each other, but then come the issue opacity. How do I play with that? z-index doesn't have effect.

Regards,

Comments

Maybe you want to use OL Layers?

sano's picture

Did you consider using OpenLayers "Layers" functionality?

Yea, I did use that (unless

kartagis's picture

Yea, I did use that (unless you're talking about entirely different). I have created 3 layers; namely green markers, red markers and gold markers and I need to display them on top of each other.

...and you used those layers

sano's picture

...and you used those layers in some preset you created? There is a screen called "Layers & Styles" where you can enable/disable layers. Opacity can be controlled using styles.

as sano mentions: no need to

dasjo's picture

as sano mentions: no need to create 3 different blocks and try to align them using css. just create 3 data overlays and activate them all for your map, they will be displayed on top of each other automatically.

Hi,My layers have different

kartagis's picture

Hi,

My layers have different filters and different layers (marker green, marker red and marker gold), so that's why I created 3 blocks. See http://cl.ly/0u0p3I262V2D3Q3S0F3L and http://cl.ly/462y2H3U1p3Y3Z3M0W1N please. Maybe I was doing wrong, and only the overlays should have filters?

You are using different maps,

Sinan Erdem's picture

You are using different maps, instead you should use different displays as layers in a map. You have to arrange these layers in the map preset page (/admin/structure/openlayers/maps)

I did it! I did it! All I had

kartagis's picture

I did it! I did it! All I had to do was to enable all the styles for a layer. Thank you all :)

Location and Mapping

Group organizers

Group categories

Wiki type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week