I get followig error on all samples provided by you with v 5
Microsoft JScript runtime error: Unable to get value of the property 'ROADMAP': object is null or undefined
On this line
google.maps.MapTypeId.ROADMAP
How do I fix it?
I get followig error on all samples provided by you with v 5
Microsoft JScript runtime error: Unable to get value of the property 'ROADMAP': object is null or undefined
On this line
google.maps.MapTypeId.ROADMAP
How do I fix it?
Hi Jakub,
One of our customers ever met the same exception, he change G_NORMAL_MAP to google.maps.MapTypeId.ROADMAP and add
<add key=“GoogleUriV3” value=“maps.google.com/maps/api/js?sensor=false”/>
in config solve his issue.
It looks your issues aren’t the same. Could you please clear your browser cache first and then try the sample again.
If you still met this issue, we may need some more detail information and that would be helpful.
Regards,
Don
There is no G_NORMAL_MAP anywhere in your sample code.
???
As mentioned I get this error in any page that uses Google overlay in YOUR SAMPLE CODE delivered with v.5 download.
Hi Jakub,
I am so sorry this issue take trouble to you.
I download and install our v5 web edition, then run all C# and VB HowDoISample projects under both vs2008 and vs2010 folder, but still haven’t reproduce your issue succeed.
Could you provide some detail information like your OS, your browser etc. So that we can try to reproduce it.
And maybe you can try to clean your browser cache again so that make sure all JS files have been replaced with the V5 version in browser.
Regards,
Don
Windows 7, Explorer 9, VS 2010, Compiled in NET 3.5
I cleaned the cache several times.
Hi Jakub,
I try to install our Map Suite Web Edition v5.0 in a created environment just the same as your setting. Our sample works looks well.
Have you changed some code in the sample? In our new 5.0, we use GoogleV3 and if you did some change for Google related code, this exception should be thrown.
You can try to replace google.JavaScriptLibraryUri =new Uri(ConfigurationManager.AppSettings["GoogleUri"]); with google.JavaScriptLibraryUri =new Uri(ConfigurationManager.AppSettings["GoogleUriV3"]);
Then add <add key="GoogleUriV3" value="maps.google.com/maps/api/js?sensor=false"/> in config.
And if you have some code like OnClientClick="Map1.SetCurrentBackgroundMapType(G_NORMAL_MAP); return false;" that should be OnClientClick="Map1.SetCurrentBackgroundMapType(google.maps.MapTypeId.ROADMAP); return false;" now.
If you still cannot solve your JS problem, please try to uninstall V5.0 and install it again then try our samples.
Regards,
Don