From b1d88c33f90ab4eca98db8851d64e6382849996f Mon Sep 17 00:00:00 2001 From: Nguyen Le Vu Long Date: Sat, 23 Jun 2018 01:07:36 +0900 Subject: [PATCH] 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. --- API.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/API.md b/API.md index dbd799c..8e55ccd 100644 --- a/API.md +++ b/API.md @@ -240,8 +240,6 @@ Example (centering the marker): ```javascript const greatPlaceStyle = { position: 'absolute', - top: '50%'; - left: '50%'; transform: 'translate(-50%, -50%)'; } ```