TerraExplorer 6.6 api for javaScript 中的Points无法获取该对象的属性和使用其所持有方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_26991807/article/details/78010234
在单个feature获取geometry(lineString或者linearRing)时得到了Points对象,却无法获取Points的属性和方法使用,会显示属性值为null或者不存在的错误。按照API文档的提示,在使用points.toArray()的方法时候:
 As of IE11, VBScript which includes the VBArray object that returns a  SafeArray, is considered deprecated. In order to continue using this  TerraExplorer API using JavaScript, add the  following meta tag in the head section, to enable you to choose  which version of Internet Explorer the HTML page should be rendered in (in this case IE10):
<meta  http-equiv="X-UA-Compatible" content="IE=10"  />在 jsp网页中加入此段代码IE后面对应相应的IE版本,
但是本人发现不仅仅在要使用这个方法时要设置,要是用point的属性也需要如此设置。
故在使用Points对象时一定要注意引入该行注释到相应的jsp文件中去。

猜你喜欢

转载自blog.csdn.net/qq_26991807/article/details/78010234
6.6