Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Author Topic: Error key G "google window"  (Read 5114 times)

aWac9

  • Hero Member
  • *****
  • Posts: 2538
  • newbie
Error key G "google window"
« 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
Logged

Acetone

  • Hero Member
  • *****
  • Posts: 963
    • Youtube channel
Re: Error key G "google window"
« Reply #1 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.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Error key G "google window"
« Reply #2 on: August 09, 2015, 04:39:04 pm »

Something changed recently in Google map API, but I think we have already fixed it internally.
Logged

Jericho

  • Outerra Developer
  • Newbie
  • *****
  • Posts: 5
  • newbie
Re: Error key G "google window"
« Reply #3 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)



« Last Edit: August 10, 2015, 05:30:26 am by Jericho »
Logged

nothinglikethesun

  • Jr. Member
  • *
  • Posts: 31
Re: Error key G "google window"
« Reply #4 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
Logged

Jericho

  • Outerra Developer
  • Newbie
  • *****
  • Posts: 5
  • newbie
Re: Error key G "google window"
« Reply #5 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.
« Last Edit: March 19, 2016, 07:53:49 am by Jericho »
Logged

nothinglikethesun

  • Jr. Member
  • *
  • Posts: 31
Re: Error key G "google window"
« Reply #6 on: March 19, 2016, 04:34:25 pm »


Thanks. You were precise and gentle. I'll try  right now
 . :-)
Logged

nothinglikethesun

  • Jr. Member
  • *
  • Posts: 31
Re: Error key G "google window"
« Reply #7 on: March 19, 2016, 05:07:57 pm »

Now It works!!! Thanks!
Logged

Jericho

  • Outerra Developer
  • Newbie
  • *****
  • Posts: 5
  • newbie
Re: Error key G "google window"
« Reply #8 on: March 19, 2016, 05:10:48 pm »

Logged