From a540d4668b8f1bfa46b3037a9e24b8754ebba775 Mon Sep 17 00:00:00 2001 From: Felix Ranesberger <52704891+felixranesberger@users.noreply.github.com> Date: Thu, 6 Jul 2023 14:25:14 +0200 Subject: [PATCH 1/2] Add additional documentation to readme I searched for a long time, to find out, how to center the markers on the map, without providing a map center location and a zoom. After finding out how it worked, I figured to extend the readme, so other users could find the information quicker. --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/README.md b/README.md index 1381f45..7333c62 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,58 @@ export default { ``` +## Center markers in the middle of the map + +If you want to zoom in on the map as far as you can, but still see all markers, reference this code snippet. + +```vue + + + +``` + ### Cluster If you have too many markers, it is helpful to cluster markers. You can easily cluster markers by wrapping your markers with `GMapCluster` component. From e3b743a2ef4cba1c4bc38fb68d3105a9ec30800f Mon Sep 17 00:00:00 2001 From: Felix Ranesberger <52704891+felixranesberger@users.noreply.github.com> Date: Thu, 6 Jul 2023 14:29:47 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7333c62..139adaa 100644 --- a/README.md +++ b/README.md @@ -133,9 +133,9 @@ If you want to zoom in on the map as far as you can, but still see all markers, ```vue + ``` ### Cluster