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

在单个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文件中去。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值