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] 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.