Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a way to insert an adsense block (or any text) into a map, when it is viewed full-screen?
Comment | File | Size | Author |
---|---|---|---|
#2 | map-ad-example.png | 98.31 KB | ressa |
Comments
Comment #1
zzolo CreditAttribution: zzolo commentedHi @ressa. I am not really sure what this means and what this would be used for?
Comment #2
ressa CreditAttribution: ressa commentedHey zzolo, I have attached a picture to clarify 8o)
Comment #3
zzolo CreditAttribution: zzolo commentedHi @ressa. Ah, I get it. Thanks for the screenshot. I have not tried to do this with fullscreen, though I have overlayed blocks on top of a map. I would assume this could be done with some CSS and possibly a little Javascript. May want to look at the fullscreen behavior (JS and CSS) to see what it is doing and how to supplement it. Might be necessary to implement your own behavior.
Comment #4
ressa CreditAttribution: ressa commentedYeah, an image speaks a thousand words 8o)
I am glad to hear you have earlier overlayed blocks on top of a map. I have come up with this snippet:
It will overlay a block on maps, both normal maps and fullscreen, when inserted right after these div's, in the code (I used firebug to do this):
...
I actually don't mind if the block is shown on both small and fullscreen maps. You wouldn't still have that code lying around by any chance? 8o) Perhaps I can using it as a starting point and share the result in this thread, if I manage to get it to work.
Comment #5
R-H CreditAttribution: R-H commentedIs there a way to integrate Adsense directly into OpenLayers? I believe that google has an api for adsense and google maps.
https://developers.google.com/maps/documentation/javascript/advertising
Comment #6
milos.kroulik CreditAttribution: milos.kroulik commentedR-H: Your comment would be better moved to its own thread because it's unrelated (and also, because it's very old thread).
Comment #7
R-H CreditAttribution: R-H commentedThanks will do that now Milos.
Comment #8
markwelbar CreditAttribution: markwelbar commentedcheck this css full screen overlay
http://www.corelangs.com/css/box/fulloverlay.html
Mark
Comment #9
ressa CreditAttribution: ressa at Ardea commented