Google MAP Javascript API v3 [英] Google MAP Javascript API v3

查看:113
本文介绍了Google MAP Javascript API v3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码在这里失败并显示以下错误消息:

Microsoft JScript运行时错误:''GBounds''未定义

 GBounds .prototype.containsPoint = function(point){
var outer = this ;
返回(outer.minX < = point.x&&
outer.maxX > = point.x&&
outer.minY < = point.y&&
outer.maxY > = point.y);
};



有人可以告诉我如何解决这个问题吗?据我所知,Javascript API v3不支持GBounds。任何替代方案?



谢谢

Lieyo

解决方案

如果GBound未定义,然后你需要在尝试使用它之前定义它。

确保一行符合 var GBounds = ... 存在......被适当的标识符取代。



[api v3的更新]

我不完全确定因为我自己没有尝试过,但我在另一个网站上找到了这个答案,可能会引导你朝着正确的方向前进。

Clickey [ ^ ]。我知道答案在技术上与ColdFusion相关,但是API的javascript使用可能就是你要找的。

My code is failing here with this error message:
Microsoft JScript runtime error: ''GBounds'' is undefined

GBounds.prototype.containsPoint = function (point) {
  var outer = this;
  return (outer.minX <= point.x &&
          outer.maxX >= point.x &&
          outer.minY <= point.y &&
          outer.maxY >= point.y);
};


Can someone please tell me how to fix this problem? From what I understand Javascript API v3 doesn''t support GBounds. Any alternative?

Thanks
Lieyo

解决方案

If GBounds is undefined, then you need to define it before you attempt to use it.
Make sure a line something along the lines of var GBounds = ... exists where the ... is replaced by the appropriate identifier.

[Update for api v3]
I''m not entirely sure because I haven''t tried it myself, but I found this answer on another site that might lead you in the right direction.
Clickey[^]. I know that the answer is technically related to ColdFusion, but the javascript use of the API might be what you are looking for.


这篇关于Google MAP Javascript API v3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆