2

I want to put a button "select " on the map above to the top centre.But when I write the " div " in CSS like this:

.over
{
z-index: 2;
position: top center;
text-align: center;
margin-top: 20px;

}

#map-canvas
   { 
    height: 550px;
    width: 100%;   
    padding-top: 0px;
    margin: 0px; 

   }

Does not work , you see under the map. The " Div " the google map does not have a z -index within

Alex
  • 47
  • 10

1 Answers1

0

Use the button as a custom control.

pstenstrm
  • 6,339
  • 5
  • 41
  • 62