BIGEMPA Js API示例中心
<!--下载本示例引用地图源码 请前往http://www.bigemap.com/Public/bigemapApp/DemoWebOffline.zip 进行下载-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
body {
margin: 0;
padding: 0;
display: flex;
}
a {
color: red;
font-size: 28px;
text-decoration: none;
}
h3 {
text-align: center;
font-size: 24px;
}
</style>
<body>
<div style=" padding-left: 40px;">
<img src="http://www.bigemap.com/Public/images/bigeapp.jpg" alt="" style="width: 300px;
padding-left: 69px;
padding-top: 116px;">
</div>
<div>
<div style="margin-top: 158px;
margin-left: 24px;">
<a href="http://www.bigemap.com/Public/bigemapApp/DemoWebOffline.zip">点击此链接,下载本示例源码</a>
</div>
<div>
<h3>扫二维码 获得本示例源码</h3>
<img src="/Public/images/bigemapApp.png" alt="" style="margin-left: 67px;">
</div>
</div>
</body>
<script>
//以下代码在APP中使用
//设置web控件
// <? xml version = "1.0" encoding = "utf-8" ?>
// <FrameLayout xmlns: android="http://schemas.android.com/apk/res/android"
// android: layout_width="match_parent"
// android: layout_height="match_parent">
// <WebView
// android:id="@+id/web_view"
// android:layout_width="match_parent"
// android:layout_height="match_parent" />
// </FrameLayout>
//地址添加
// import androidx.appcompat.app.AppCompatActivity
// import android.os.Bundle
// import android.webkit.WebSettings
// import android.webkit.WebView
// import android.webkit.WebViewClient
// import kotlinx.android.synthetic.main.activity_main.*
// class MainActivity : AppCompatActivity() {
// override fun onCreate(savedInstanceState: Bundle ?) {
// super.onCreate(savedInstanceState)
// setContentView(R.layout.activity_main)
// web_view.loadUrl("https://ok.zhangwei.fun/phone.html")
// web_view.webViewClient = object : WebViewClient() {
// override fun shouldOverrideUrlLoading(view: WebView, url: String): Boolean {
// view.loadUrl(url)
// return true
// }
// }
// // web_view.settings.cacheMode = WebSettings.LOAD_NO_CACHE
// // web_view.settings.blockNetworkImage = true
// web_view.settings.javaScriptEnabled = true
// }
// }
</script>
</html>