B4J Question Googlemaps bug?

Arnaud

Active Member
Licensed User
Longtime User
Hello,

Since 24-02-2023, I have problem with Google map library for all my project in B4j . the screen is white.

So, I have tested with the example project "GoogleMapDemo" to be sure that the problem is not my API key, and I have the same problem.

It seems that the problem is when the pane to show the map is big, the library doesn’t work....

I have done 2 examples with to size different, small size seems work fine, big size doesn’t work. I had not this problem before.

I use also "Private MarkerInfos As Map" to put different markers, and this doesn't work also now with small and big size of map. I don't know if these both problem are linked or not...


An idea about this please?

Many thanks
 

Attachments

  • 900x600.png
    211.2 KB · Views: 154
  • 1700x600.png
    17.1 KB · Views: 157

RichardN

Well-Known Member
Licensed User
Longtime User
#MeToo.....

This happened once before for no apparent reason with existing projects. I suspected that Google had dropped the API key if it had not been used for some time so I regenerated the API key and it appeared to fix the issue.... but not this time. No idea of the cause at the moment, all libs appear to be up to date.

My payment means (the one they never charge) is still in date on the API console.

What has changed?
 
Last edited:
Upvote 0

RichardN

Well-Known Member
Licensed User
Longtime User
From trial & error setting the size of MainForm affects the map/white screen situation.

Google White Maps Issue:
#Region  Project Attributes

                                                'values previously 3000x1000
    #MainFormWidth: 770           
    #MainFormHeight: 600
    
    'Values above 770w or 600h produce a white Google map
    
#End Region
 
Upvote 0

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
What would be the ideal MainForm size?
 
Upvote 0

Arnaud

Active Member
Licensed User
Longtime User
Yes, It seems that I have exactly the same result !
 
Upvote 0

RichardN

Well-Known Member
Licensed User
Longtime User
@Johan Hormaza said:
What would be the ideal MainForm size?
I don't think there is a correct answer to that (although somebody my chip in with a suggestion). You may be working towards compatibility for all screen sizes or, as in my case, you simply have an app that has to look good maximised on my PC with a native 4k monitor.
 
Upvote 0

RichardN

Well-Known Member
Licensed User
Longtime User
I cannot pin this Google Maps problem down further. I suspect the data coming via the API has been subtly changed and the jGoogleMaps library is no longer interpreting it correctly.

I am sure @Erel will take a look at it after the weekend.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…