Skip to content

Commit 428ca73

Browse files
committed
Adding detail for container style in the readme
1 parent c70a04f commit 428ca73

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

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

108123
```javascript

0 commit comments

Comments
 (0)