css - Google Maps infobox close button -



css - Google Maps infobox close button -

i have problem infobox on google maps. have stiled wanted close button disapired :/... know how solve problem?

my code:

<!doctype html> <html> <head> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"> </script> <script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js"></script> <script type="text/javascript"> function initialize() { var loc, map, marker, infobox; loc = new google.maps.latlng(-33.890542, 151.274856); map = new google.maps.map(document.getelementbyid("map"), { zoom: 12, center: loc, maptypeid: google.maps.maptypeid.roadmap }); marker = new google.maps.marker({ map: map, position: loc, visible: true }); infobox = new infobox({ content: document.getelementbyid("infobox"), disableautopan: false, maxwidth: 220, pixeloffset: new google.maps.size(-120, -320), zindex: null, boxstyle: { width: "220px" }, closeboxmargin: "12px 12px 2px 2px", closeboxurl: "http://www.google.com/intl/en_us/mapfiles/close.gif", infoboxclearance: new google.maps.size(1, 1) }); google.maps.event.addlistener(marker, 'click', function() { infobox.open(map, this); map.panto(loc); }); } google.maps.event.adddomlistener(window, 'load', initialize); </script> <title>creating , using infobox</title> </head> <body> <div id="map" style="width: 100%; height: 500px"></div> <br> <div class="infobox-wrapper"> <div id="infobox"> <div class='actioninfo'> <div class='markerimage'><a target='_blank' href=" + url + "><img src="http://www.plaveo.eu/files/actions/132_s.jpg"></a></div> <div class='markeractiondescription'><h3><a target='_blank' href=" + url + ">izdelava spletne strani - paket bronze - 11%</a></h3></div> <div class='actiontill'>traja do: <b>10.10.2014 16h </b> <br /> <a target='_blank' href=" + url + ">več tukaj ...</a></div> </div> <hr /> <div class='coname'><strong>futuro web design</strong></div> <div class='coaddress'>grajska cesta 26, 4260 bled</div> <div class='cocontact'>tel.: 040 351 766</div> </div> </div> </body> </html>

css

.infobox-wrapper { display:none; width: 220px; } #infobox { position: relative; background: #7dc9c8; border: 5px solid #ffffff; max-width: 200px; font-family:roboto; padding: 10px; } #infobox:after, #infobox:before { top: 100%; left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } #infobox:after { border-color: rgba(125, 201, 200, 0); border-top-color: #7dc9c8; border-width: 20px; margin-left: -20px; } #infobox:before { border-color: rgba(255, 255, 255, 0); border-top-color: #ffffff; border-width: 27px; margin-left: -27px; }

http://jsfiddle.net/jehj3/3521/

the button covered #infobox.

set negative z-index #infobox (e.g. -1)

css google-maps infobox

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -