请问一下,我用这个Tomcat服务器部署API,部署上去了但是链接不到?是什么原因?


图片1.png


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Intro to MapView - Create a 2D map - 4.8</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>

<link rel="stylesheet" href="http://localhost/arcgis_js_api ... gt%3B
<script src="http://localhost/arcgis_js_api ... gt%3B

<script>
require([
"esri/Map",
"esri/views/MapView",
"dojo/domReady!"
], function (Map, MapView) {

var map = new Map({
basemap: "streets"
});

var view = new MapView({
container: "viewDiv",
map: map,
zoom: 4,
center: [15, 65] // longitude, latitude
});

});
</script>
</head>

<body></body>
</html>
已邀请:

许丹石 - Esri技术支持工程师

赞同来自: 陈晨

是完全按照这篇文章的步骤部署的吗?http://zhihu.esrichina.com.cn/article/3514

要回复问题请先登录注册