Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Paul Gibson
  Where is Paul Gibson?
 United Kingdom
 Paul Gibson
 To: Gerrit Broekhuis
  Where is Gerrit Broekhuis?
 Gerrit Broekhuis
Subject: RE: Google Maps with VFP _webview.vcx
Thread ID: 395557 Message ID: 395713 # Views: 60 # Ratings: 2
Version: Visual FoxPro 9 SP2 Category: 3rd Party Software
Date: Friday, January 17, 2014 1:36:19 PM         

> Hi,
> I'm trying to use Google Maps in combination with VFP's _webview.vcx, so I can see the results in a VFP form instead of opening the web browser. The map is shown, but I immediately get an error I cannot explain (I don't see a file home3.html and cannot find line 774 anywhere). Maps will be called with address information (city + address) instead of geographic coordinates.
> The page showing the map is not fully functional, changing from normal map to satellite, hybrid or terrain is not working. Zooming is not working either, so I understand there is an error somewhere. See image attached and my sample form.
> Another point is that I would like to get rid of the black bar, mentioning all the Google services.
> I looked at the search results on foxite, but did not find an explanation for what's happening here. What can cause my errors?
> Regards, Gerrit
> https://www.foxite.com/uploads/6d21f637-903d-4199-bc26-799951b349aa.zip

Others have given you alternatives but here is the explanation as to why you are having difficulties.

The Internet Explorer Browser object that is utilised is rendering the web pages in a very old and out of date version of Internet Explorer and with default settings to do things that give you prompts when IE thinks there is an error on the page. Internet Explorer, although still the runt of the browsers, has made many leaps forward and it is unlikely that Google Maps' current version is supporting the extremely old versions like you are utilising and that's why you not only get an error prompt but also get a map that is not fully functional. It takes an awful lot of effort these days to make superbly functional web pages that also have backward compatibility with IE6/IE7 and chances are Google just aren't bothering anymore.

There is plenty of evidence to suggest that the IE browser control is stuck in a rendering mode for IE7 which is ancient now, there are suggestions that you can do something about it though.

Rick Strahl wrote a good article back in 2011 on the versioning of the IE control and you can attempt to tell the IE control to render in a different version of IE

While searching for the above article I found another, this one isn't the one I was trying to find but I think it should be a good one for you to read if you haven't already and are doing some browser automation:


Google Maps with VFP _webview.vcx Posted by Gerrit Broekhuis @ 1/15/2014 9:17:45 PM
RE: Google Maps with VFP _webview.vcx Posted by Pete Sass @ 1/15/2014 9:40:16 PM
RE: Google Maps with VFP _webview.vcx Posted by Tore Bleken @ 1/15/2014 9:53:08 PM
RE: Google Maps with VFP _webview.vcx Posted by Pete Sass @ 1/16/2014 2:37:14 PM
RE: Google Maps with VFP _webview.vcx Posted by Ciprian Zaharia @ 1/16/2014 3:35:24 AM
RE: Google Maps with VFP _webview.vcx Posted by Paul Gibson @ 1/17/2014 1:36:19 PM
RE: Google Maps with VFP _webview.vcx Posted by David Mustakim @ 1/17/2014 1:42:17 PM
RE: Google Maps with VFP _webview.vcx Posted by Gerrit Broekhuis @ 1/20/2014 9:42:09 AM
RE: Google Maps with VFP _webview.vcx Posted by Willem van Oosten @ 1/17/2014 11:46:36 PM