cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Add simple method for adding a border around a map generated using the API #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Maps generated using the API have no borders
2. Static maps have a frame=true option that produces a border
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by StoneFlo...@gmail.com on 11 Jul 2008 at 12:36

GoogleCodeExporter commented 8 years ago
I don't understand this request. What would you like?
You can use just CSS to add a border to your map div.

Original comment by pamela.fox on 11 Jul 2008 at 12:43

GoogleCodeExporter commented 8 years ago
If you really want a method:

function addBorder(map) {
  map.getContainer().style.border = '1px solid black';
}

but I think this is a bit too small to put into a library of its own, and it 
doesn't really fit in with any of the existing 
libraries.

Original comment by lem...@gmail.com on 31 Jul 2008 at 4:02