Aptana3 代码协助 Google 地图 API v3

发布于 2025-01-08 17:30:33 字数 1055 浏览 4 评论 0原文

我正在尝试在 Aptana3 中启用 Google Maps API v3 的代码辅助。 这似乎不起作用。

我按照此页面中的说明进行操作:

将 VSDoc 文件拖放到您的 Web 项目中。

V3 地图 API:gmapvsdoc.codeplex.com

按照指示,我从 Google Maps API 3 Visual Studio Intellisense Helper

我提取了 google-maps-3-vs-1-0.jsgoogle-maps-3-vs-1-0-vsdoc.js 位于我的项目(PHP 项目)的 scripts 文件夹中。

这就是我将 API 包含在 html 文件中的方式:

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="scripts/google-maps-3-vs-1-0.js"></script>

API 工作正常。我可以访问它的所有功能。 然而,当我输入“地图”时。 (使用 var map = new google.maps.Map(...) 初始化变量后)Aptana 没有任何建议可以帮助我。

Aptana3 与 Google 地图 API v3 不兼容吗?

我做错了什么吗?

难道是因为我也在使用 JQuery Code Assist?

I'm trying to enable Code Assist for Google Maps API v3 in Aptana3.
It does not seem to work.

I followed the instructions from this page:

Drop the VSDoc files into your Web Project.

V3 Maps API: gmapvsdoc.codeplex.com

As instructed, I got the zip file from Google Maps API 3 Visual Studio Intellisense Helper

I extracted google-maps-3-vs-1-0.js and google-maps-3-vs-1-0-vsdoc.js in a scripts folder in my project (a PHP project).

This is how I included the API in my html file:

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="scripts/google-maps-3-vs-1-0.js"></script>

The API works fine. I can access all its features.
Yet, when I type 'map.' (after initializing the variable with var map = new google.maps.Map(...)) Aptana has no proposals to assist me with.

Is Aptana3 not compatible with Google Maps API v3?

Have I done something wrong?

Could it be because I'm also using the JQuery Code Assist?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文