Skip to content

Commit 81839eb

Browse files
authored
Merge pull request #380 from NickFoden/add-container-style-to-readme
Adding detail for container style in the readme
2 parents 229c109 + f13a1e6 commit 81839eb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,22 @@ const style = {
103103
height: '100%'
104104
}
105105
```
106+
107+
Container Style: Takes CSS style object - optional, commonly when you want to change from the default of position "absolute".
108+
109+
```javascript
110+
const containerStyle = {
111+
position: 'relative',
112+
width: '100%',
113+
height: '100%'
114+
}
115+
```
116+
117+
```javascript
118+
<Map
119+
containerStyle={containerStyle}
120+
```
121+
106122
initialCenter: Takes an object containing latitude and longitude coordinates. Sets the maps center upon loading.
107123

108124
```javascript

0 commit comments

Comments
 (0)