5

i wrote a small progam (C#, WPF, .Net 4.6) with a Frame. After loading a HTML file with a google map I got this error:

The browser you are using is not supported by the Google Maps JavaScript API. Use a different browser.

I already have add the follwing HTML-Code:

<head><meta http-equiv="X-UA-Compatible" content="IE=edge" />

But it dosn't work any more.

Some one an idea why or what I should change?

Stephan Hager
  • 61
  • 1
  • 4

3 Answers3

3

You can remove this error by adding:

<style>
    .infomsg {display:none;}
</style>
Jim Simson
  • 2,557
  • 3
  • 19
  • 27
  • My pleasure Stephan. – Jim Simson Aug 09 '17 at 17:56
  • 2
    This just hides the message and does nothing to address the problem that Google Maps just won't work with IE 8 or below. You'll get an empty white frame and a bunch of errors in the console. Try it with a modern version of IE, F12, set the compatibility level to 8 or below. – Neil Laslett Nov 06 '17 at 19:23
0

This post got it working for me: https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version

It gives a few registry options (I used the entry in the HKLM part of the registry). The downside is that it seems to require a registry entry.

David
  • 3,171
  • 2
  • 22
  • 25
0

You have to change registry

SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION to true

check this

https://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version

Abuleen
  • 343
  • 3
  • 8