2016-10-02 122 views
0

我創建一個谷歌地圖網頁,其中經緯度從本地主機mysql加載並保存爲.txt,並將加載並標記到谷歌地圖網頁,它的工作原理,那麼有可能將其轉換爲android webview?或者有一種更簡單的方法。android-google map v3從sql加載標記

+0

/notice meeeeeee –

回答

0

關於在Android中使用web視圖,試試這個SO thread

WebView webview = (WebView) findViewById(R.id.webView1); 
webview.setWebViewClient(new WebViewClient()); 
webview.getSettings().setJavaScriptEnabled(true); 
//just replace the actual latlong values with your variables from SQL 
webview.loadUrl("http://maps.google.com/maps?" + "saddr=43.0054446,-87.9678884" + "&daddr=42.9257104,-88.0508355"); 

還有從您存儲經緯度值在SQL與PHP的幫助下加載標記到地圖谷歌文檔一個Using PHP/MySQL with Google Maps指南。

這個video demo可能有助於實施。