gpsclient 车载地图怎么更新新地图

客户端简易操作说明_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
客户端简易操作说明
上传于||暂无简介
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩7页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢引用:/newjavaee/item/3be4f3a0f1cb4
一个小东西,C/S程序中调用在线google map。
不过需要用到一种技术,DJ NativeSwing 一个开源框架,很好用的。
demo如下:
* To change this template, choose Tools | Templates
* and open the template in the editor.
import chrriis.dj.nativeswing.swtimpl.NativeI
import chrriis.dj.ponents.JWebB
import java.awt.BorderL
import java.net.URL;
import javax.swing.*;
public class TestMap {
public static JComponent createContent() {
JWebBrowser webBrowser = new JWebBrowser();
webBrowser.setBarsVisible(false);
URL path =WebBrowserFunctionExample.class.getResource("/");
String script1 ="&script type=\"text/javascript\" src=\"/maps/api/js?sensor=false\" type=\"text/javascript\"&&/script&";
String script2="&script type=\"text/javascript\" src=\""+path+"google/markerwithlabel.js\"&&/script&";
String script3="&script type=\"text/javascript\" src=\""+path+"google/infobubble.js\"&&/script&";
String script4="&script type=\"text/javascript\" src=\""+path+"google/google_map.js\"&&/script& ";
String jquery = "&script type=\"text/javascript\" src=\""+path+"js/jquery.js\"&&/script&";
String script5="&head&&style type=\"text/css\"&#mapbar{ height:100%;width:100%;}&/style&&/head&";
String script6="&script type=\"text/javascript\"&$(document).ready(function(){ initMap();});&/script&";
String div ="&body &&div id=\"mapbar\"&&/div&&/body&";
System.out.println(script1+script2+script3+script4+script5+div);
webBrowser.setHTMLContent(jquery+script1+script2+script3+script4+script5+div+script6);
return webB
/* Standard main method to try that test as a standalone application. */
public static void main(String[] args) {
NativeInterface.open();
UIUtils.setPreferredLookAndFeel();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JFrame frame = new JFrame("DJ Native Swing Test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(createContent(), BorderLayout.CENTER);
frame.setSize(800, 600);
frame.setLocationByPlatform(true);
frame.setVisible(true);
NativeInterface.runEventPump();
&运行效果如图:swing中引入Google Map
Views(...) Comments()君,已阅读到文档的结尾了呢~~
GPS-方案Gps,gps,GPS8,GPS,gps8
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口

我要回帖

更多关于 汽车导航地图怎么更新 的文章

 

随机推荐