No more Google Maps support for Internet Explorer 11

Everything else that doesn't fall into one of the other PB categories.
dige
Addict
Addict
Posts: 1240
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

No more Google Maps support for Internet Explorer 11

Post 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?
"Daddy, I'll run faster, then it is not so far..."
plouf
Enthusiast
Enthusiast
Posts: 250
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Re: No more Google Maps support for Internet Explorer 11

Post by plouf »

there aer a few third party "chromium" webgadget developed
example -> viewtopic.php?t=77089
Christos
User avatar
idle
Always Here
Always Here
Posts: 5019
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: No more Google Maps support for Internet Explorer 11

Post by idle »

Could you change and use this? PBMap OSM gadget
viewtopic.php?t=66320
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: No more Google Maps support for Internet Explorer 11

Post 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.
plouf
Enthusiast
Enthusiast
Posts: 250
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Re: No more Google Maps support for Internet Explorer 11

Post 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.. ;-)
Christos
dige
Addict
Addict
Posts: 1240
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: No more Google Maps support for Internet Explorer 11

Post 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

"Daddy, I'll run faster, then it is not so far..."
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: No more Google Maps support for Internet Explorer 11

Post 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.
Last edited by JHPJHP on Sat Dec 17, 2022 6:37 pm, edited 5 times in total.
User avatar
ChrisR
Addict
Addict
Posts: 1124
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: No more Google Maps support for Internet Explorer 11

Post 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.
dige
Addict
Addict
Posts: 1240
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: No more Google Maps support for Internet Explorer 11

Post by dige »

Many thanks from me too JHPJHP - this saves my life. :D
"Daddy, I'll run faster, then it is not so far..."
Post Reply