ArcGIS Server JavaScript API+Jsp入门实例(HelloWorld.jsp)
来源:互联网 发布:node v6.5.0 x64.msi 编辑:程序博客网 时间:2024/06/04 18:15
效果图:
代码(红色部分为重点):
HelloWorld.jsp
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'HelloWorld.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
@import "http://serverapi.arcgisonline.com/jsapi/arcgis/2.2/js/dojo/dijit/themes/tundra/tundra.css";
</style>
<script type="text/javascript" src="</script'>http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.2"></script>
<script type="text/javascript">
dojo.require("esri.map");
function init(){
var map=new esri.Map("mapDiv");
var MS=new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer");
map.addLayer(MS);
}
dojo.addOnLoad(init);
</script>
</head>
<body>
<div id="mapDiv" style="position:relative;width:100%; height:100%; border:1px solid #000;"></div>
</body>
</html>
- ArcGIS Server JavaScript API+Jsp入门实例(HelloWorld.jsp)
- Arcgis server Javascript API 官网相当于HelloWorld的完整版
- arcgis api for javascript中使用proxy.jsp
- arcgis api for javascript中使用proxy.jsp
- JSP---HelloWorld!
- Jsp-helloworld
- JSP-helloWorld
- ArcGis Server Javascript API 安装配置实录
- ArcGIS Server JavaScript API 学习笔记
- Dreamweaver上搭建ArcGIS Server Javascript API+
- ArcGIS server javascript api基于jQuery插件
- ArcGIS Server for JavaScript api安装部署
- ArcGIS Server for JavaScript api安装部署
- ArcGIS Server JavaScript API 自定义导航2
- ArcGIS Server for JavaScript API安装部署
- S1.1 Arcgis Server Javascript API 介绍
- ArcGIS Server JavaScript API 学习笔记
- 快速入门JSP实例分析
- 常量指针和指针常量的区别详解
- 数据
- 查看IP和MAC地址的命令
- 拖放
- SAP技巧篇
- ArcGIS Server JavaScript API+Jsp入门实例(HelloWorld.jsp)
- Android开发环境搭建全程演示(jdk+eclipse+android sdk)
- 在Ext JS本地化
- Android RelativeLayout 属性
- patch 11 client 安装
- 键盘导航
- 结构体
- IP地址排序、IP区段去重
- 两句话写的很好