Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在按照本教程在 SWT 中创建地图浏览器。
似乎地图中心是在html文件中设置的。有没有办法从 Java 代码更改位置(纬度和经度值)?我正在尝试实施车辆跟踪系统。
提前谢谢。
我找到了解决该问题的方法。我用 Html 文件的内容创建了一个字符串数组,并将其传递给浏览器。在这个片段中找到它。
Html 代码的内容取自此博客。
BrowserFunction你可以在 swt中做一些实验。它用于在 SWT 浏览器中从 java 脚本回调到 java。
BrowserFunction
The queryMe method returns an ArrayIterator<Me>. The queryYou method returns an ArrayIterator<You>.
public ArrayIterator<Object> query(String table, String field, String c