Update API.md (#606)

Because the parent node of marker has size 0x0, top 50% and right 50% would affect nothing. You only need to translate(-50%, -50%) to move it to the right position.
This commit is contained in:
Nguyen Le Vu Long 2018-06-23 01:07:36 +09:00 committed by Michael Diego
parent a73629b389
commit b1d88c33f9

2
API.md
View File

@ -240,8 +240,6 @@ Example (centering the marker):
```javascript
const greatPlaceStyle = {
position: 'absolute',
top: '50%';
left: '50%';
transform: 'translate(-50%, -50%)';
}
```