From 9e32b4aa81467d59686b551f3e9b77df0846064d Mon Sep 17 00:00:00 2001 From: Daniel Molnar Date: Mon, 25 Oct 2021 19:57:37 +0200 Subject: [PATCH] Update readme.md for `ownPositionMarker` - adjusted usage of `ownPositionMarker` according to type: ``` export type OwnPositionMarker = { animation: MapMarkerAnimation; id?: string; icon: string; position: LatLng; size: Point; }; ``` --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 080ce09..9b24eca 100644 --- a/readme.md +++ b/readme.md @@ -65,7 +65,7 @@ A typical example is shown below: | mapMarkers | optional | MapMarker array | An array of map markers | | mapShapes | optional | MapShape[] | An array of map shapes | | mapCenterPosition | optional | {lat: [Lat], lng: [Lng]} object | The center position of the map. This coordinate will not be accurate if the map has been moved manually. However, calling the map's setMapCenterPosition function will cause the map to revert to this location | -| ownPositionMarker | optional | Marker | A special marker that has an ID of OWN_POSTION_MARKER_ID | | +| ownPositionMarker | optional | OwnPositionMarker | A special marker that has an ID of OWN_POSTION_MARKER_ID | | | zoom | optional | number | Desired zoom value of the map | ### Example Marker @@ -73,14 +73,14 @@ A typical example is shown below: ```javascript ownPositionMarker={{ id: '1', - coords: {lat: 36.00, lng, -76.00}, + position: {lat: 36.00, lng, -76.00}, icon: "❤️", size: [24, 24], animation: { - name: AnimationType.BOUNCE, - duration: ".5", + type: AnimationType.BOUNCE, + duration: 0.5, delay: 0, - interationCount: INFINITE_ANIMATION_ITERATIONS + iterationCount: INFINITE_ANIMATION_ITERATIONS } }} ```