Page 1 of 1

No more Google Maps support for Internet Explorer 11

Posted: Wed Nov 30, 2022 9:52 am
by dige
Hi guys,

if you use Google Maps within the WebGadget(), it will not work anymore. Unfortunately Google has deleted all older versions.
All version information before v3.50 will ignored.
So, what can be done?
Does anyone know an archive of Google Maps javascripts?

Is there an easy way (userfriendly) to switch the WebGadget to Edge?
I only know the way via the edge development version. But that is difficult for customers.

I have also seen a Chromium framework, but it is over 100MB in size. Are these all the current possibilities?

Re: No more Google Maps support for Internet Explorer 11

Posted: Wed Nov 30, 2022 9:34 pm
by plouf
there aer a few third party "chromium" webgadget developed
example -> viewtopic.php?t=77089

Re: No more Google Maps support for Internet Explorer 11

Posted: Wed Nov 30, 2022 10:42 pm
by idle
Could you change and use this? PBMap OSM gadget
viewtopic.php?t=66320

Re: No more Google Maps support for Internet Explorer 11

Posted: Fri Dec 16, 2022 12:28 am
by JHPJHP
Hi dige,
dige wrote:if you use Google Maps within the WebGadget(), it will not work anymore.
Embedded Google Maps still work with the PureBasic WebGadget. I just tested my Windows examples and they're working fine.

TEST: Compiled executables can be downloaded from my website; see FREE STUFF > Geolocation: Google Maps.

Re: No more Google Maps support for Internet Explorer 11

Posted: Fri Dec 16, 2022 12:34 am
by plouf
Yes but its pure luck

Google removes sources from server slow.
They ALWAYS. Have more time than the one anmounced in all products they withdraw.

So its a matter if days/weeks to stop working
And solutions based in chromium webgadgets (like your own)
Should be used

Native solutions like the ones mention need little work to afapt from old WebGadget() .... Which is a good think.. ;-)

Re: No more Google Maps support for Internet Explorer 11

Posted: Fri Dec 16, 2022 10:17 am
by dige
@JHPJHP : Unfortunately, the map view no longer works.

Does anyone have a local copy of this javascript: https://maps.google.com/maps/api/js?v=3.17&sensor=false ?

Here you can see the script error:

Code: Select all

Url.s = "https://www.dbsthumb.de/livemap/index2.html"

  Procedure NavigationCallback(Gadget, Url$)    ; nur auf Windows!
    If Url$= "https://www.purebasic.com/news.php" 
      MessageRequester("", "No news today!") 
      ProcedureReturn #False 
    Else 
      ProcedureReturn #True 
    EndIf 
  EndProcedure 
  
  If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) 
    WebGadget(0, 10, 10, 580, 280, Url) 
    SetGadgetAttribute(0, #PB_Web_NavigationCallback, @NavigationCallback())
    Repeat 
    Until WaitWindowEvent() = #PB_Event_CloseWindow 
  EndIf


Re: No more Google Maps support for Internet Explorer 11

Posted: Fri Dec 16, 2022 4:39 pm
by JHPJHP
Hi plouf,
plouf wrote:Yes but its pure luck
No, Pure-Programming :) but I agree with you, it won't last forever.

Going forward a better option is the Chromium WebGadget.

Code: Select all

Enumeration
  #MainWindow
  #Cr_WebGadget
EndEnumeration

IncludeFile "includes\sources.pbi"

WindowWidth = 960 : WindowHeight = 548
nFlags = #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered

If OpenWindow(#MainWindow, 0, 0, WindowWidth, WindowHeight, "Chromium WebGadget", nFlags)
  Cr_WebGadget(#Cr_WebGadget, 0, 0, WindowWidth, WindowHeight, #Cr_WebGadget_BorderLess)
  crwg_data.CrWG_DATA
  crwg_data\GadgetNumber = #Cr_WebGadget
  crwg_data\SourceURL = "https://www.dbsthumb.de/livemap/index2.html"
  Cr_WebGadget_Init(crwg_data)
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
--------------------------------

Hi dige,

See Geolocation: Google Maps; the solution has been available for years, I guess it just depends on what your time is worth.

Re: No more Google Maps support for Internet Explorer 11

Posted: Fri Dec 16, 2022 5:41 pm
by ChrisR
Thank you for this good solution with the latest ie11 emulation and the user agent for the session 8)
Too bad there is no RegSetValueSessionEx :lol:
Hoping this solution lasts long enough to see a Chromium or WebView2 Gadget natively.

Re: No more Google Maps support for Internet Explorer 11

Posted: Fri Dec 16, 2022 7:50 pm
by dige
Many thanks from me too JHPJHP - this saves my life. :D