Hi John Mach,
Did you get solution for this Virtual Earth Map on BlackBerry Browser issue? If yes, please share me the answer. I am also facing the same issue.
Microsoft Virtual Map is not rendering in Windows Mobile 5.0 and BlackBerry emulators.
The exception Reference Error: "VEMap is not defined" and "VEMap is undefined" is displayed in Blackberry and Windows Mobile 5.0 respectively.
I have tried in the following ways. But no luck!
Scenario 1:
<script type="text/javascript" src=VIRUAL MAP API URL here></script>
The map is not rendering in both Windows Mobile 5.0 and Blackberry emulators. But renders properly in Windows Mobile 6.1 emulator.
Scenario 2:
We have copied the entire content from VIRUAL MAP API URL and pasted into local file mvmAPI62.
js.
Now the script tag is <script src="mvmAPI62.
js" type="text/javascript"></script>. Now also the same result.
We have added two more custom methods in mvmAPI62.
js. One, StartTest() at the beginning of the file and another EndTest() is at the end of the file.
We invoked these two methods. These two methods are invoked and the results are displayed in ordinary desktop browsers. But not in BlackBerry emulator and Win Mob 5.0.
Scenario 3:
Now we have copied the entire content of the mvmAPI62.
js file and pasted into the htm file itself under the <script> tag .
Reference Error: "StartTest" is not defined. i.e., even our test functions are not invoked.
Scenario 4:
We have removed all the contents except the StartTest and EndTest functions under the script tag of htm file.
These two methods are invoked and the results are displayed in BlackBerry. It seems the code we have taken from VIRUAL API URL causing the problem.
Scenario 5:
We have created a prototype for VEMap() and invoked through it. But it thew the [Object Object] exception in desktop browsers. BlackBerry browsers also threw some different exceptions.
The following links are talking about this issue but none have answer.
The size of the content taken from the VIRUAL MAP API URL is nearly 1 MB.
-Jagadhees.