Inconsistency while invoking JavaScript Method in Internet Explorer ActiveX control

조회 수: 1 (최근 30일)
Hello,
I am working on interfacing MATLAB with Google Earth Plug-in. The interface uses Internet Explorer ActiveX control as host for the Google Earth Plug-in as the plug-in uses JavaScript.
In a simple demo below (testJS.html), I successfully imitate a straight movement in Google Earth using pre-defined coordinates. (Works only on Firefox and IE, although on IE the speed is a little bit fast).
Using the same coordinates, I invoked the JavaScript methods from MATLAB script. Instead of straight movement, what I get is zig-zag movement. At first, I thought the problem was the decimal places of the input, as Google Earth supports only up to 6 decimal places. But, reducing the decimal places also brought no joy.
Does anyone have any idea what wrong is?
Thanks.
Wan.
p.s: below is the files. testJS.html is a JavaScript demo. TestOhneSimulink.m is the MATLAB code. pluginhost3.html is the host html document of the plugin.
or this if above does not work

답변 (0개)

카테고리

Help CenterFile Exchange에서 ActiveX에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by