Outerra forum

User mods, screenshots & videos => Other => Topic started by: aWac9 on August 09, 2015, 04:15:16 pm

Title: Error key G "google window"
Post by: aWac9 on August 09, 2015, 04:15:16 pm
G (google map) key is blank and I can not see anything
Any idea how to fix?

Thank you
Title: Re: Error key G "google window"
Post by: Acetone on August 09, 2015, 04:27:44 pm
I think Gmap API is not working for some reason. Uriah and I had the same problem.
Title: Re: Error key G "google window"
Post by: cameni on August 09, 2015, 04:39:04 pm
Something changed recently in Google map API, but I think we have already fixed it internally.
Title: Re: Error key G "google window"
Post by: Jericho on August 10, 2015, 05:26:14 am
Hello guys,

something has changed in google API related to load events.
I have attached the fixed version of map.html.
To fix the issue simply overwrite existing map.html file in WWW direction in installation path of Outerra with file in attachment.

PS: You have to be logged in to see attachment(s)



Title: Re: Error key G "google window"
Post by: nothinglikethesun on March 19, 2016, 07:22:55 am
There 's a wayto modify cfg files to increase the size of the Google Maps window ? Thanks
Title: Re: Error key G "google window"
Post by: Jericho on March 19, 2016, 07:45:18 am
There 's a wayto modify cfg files to increase the size of the Google Maps window ? Thanks

Hello,

currently there is no way to change google map ("g" key) size or position through cfg file, but you can simply edit
source file of that map. Its easy if you follow next 3 simple steps.

1) Find file "map.html", file should be located in

anteworld_installation_dir / WWW / map.html

2) Open the file with any text editor

3) Go to the end of the file and there should be following javascript code

    <script>
        (function () {
            load();
        })();
    </script>

Replace it with following code

    <script>
        (function () {
            load();
         var width = 800,
             height = 600;
            
         window.resizeTo(width, height);
         window.moveTo(screen.availWidth - width, screen.availHeight - height);
        })();
    </script>

This code change will increase map window size to 800 by 600 while maintaining its position in bottom right corner.

You may change width and height variables to change size of the window.
Optionally you may move to other position with window.moveTo.
For example window.moveTo(0, 0) will move window to top left corner of the screen.

Only downside is when you will download newer version I think this file will be restored to the old state so you will have
to repeat the process.

Hope this helps.
Title: Re: Error key G "google window"
Post by: nothinglikethesun on March 19, 2016, 04:34:25 pm

Thanks. You were precise and gentle. I'll try  right now
 . :-)
Title: Re: Error key G "google window"
Post by: nothinglikethesun on March 19, 2016, 05:07:57 pm
Now It works!!! Thanks!
Title: Re: Error key G "google window"
Post by: Jericho on March 19, 2016, 05:10:48 pm
Now It works!!! Thanks!

Glad to help.  :)