Skip to content

Commit c0d8ecd

Browse files
authored
Merge pull request #183 from MinecraftServerControl/Roflicide-overviewer-readme-patch-2
Readme overviewer update #2
2 parents 559fab0 + 5c780d8 commit c0d8ecd

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,20 +491,32 @@ supported systems, or build your own binary from source if needed.
491491

492492
Overviewer currently requires a free Google API key. You can obtain one
493493
[here](https://developers.google.com/maps/documentation/javascript/get-api-key).
494-
On the webpage, Select the blue "Get a Key" button.
494+
On the webpage, select the blue "Get a Key" button.
495495
You can create a new project or use the already-made "My Project" to obtain
496496
the API key--it doesn't matter.
497497

498498
Then, edit line 14 of `/opt/mscs/maps/<world>/index.html` to replace
499499

500-
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
500+
<script type="text/javascript" src="https://maps.google.com/maps/api/js"></script>
501501

502502
with
503503

504-
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=MYKEY&sensor=false"></script>
504+
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=MYKEY"></script>
505505

506506
replacing MYKEY with the key you obtained above.
507-
507+
508+
You will also need to update other `index.html` source locations of
509+
where Overviewer is installed with your API key.
510+
Run the following command to find those sources (command courtesy of [Zeromusta](https://github.com/overviewer/Minecraft-Overviewer/issues/1308#issuecomment-271848826)):
511+
512+
find /usr/ -name "index.html" -print | grep overviewer_core/data/web_assets
513+
514+
In my case, there was 3 locations, so I updated the 14th line of each `index.html`
515+
to include my API key as described above.
516+
517+
You will need to repeat these above steps everytime Overviewer is updated (or, until they
518+
add a fix for this).
519+
508520
In the `mscs.defaults` file (one will be created if you haven't created one manually),
509521
you'll find various Overviewer mapping settings which you change to your liking.
510522
We've listed the map-related settings below:

0 commit comments

Comments
 (0)