mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-04 15:17:36 +00:00
更新
This commit is contained in:
parent
961fb0867c
commit
7e9ac92701
28
examples/cesiumEx/5.2.2、入门.html
Normal file
28
examples/cesiumEx/5.2.2、入门.html
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<!--********************************************************************
|
||||||
|
* by jiawanlong
|
||||||
|
*********************************************************************-->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="stylesheet" href="./../../libs/cesium/Cesium1.98/Widgets/widgets.css">
|
||||||
|
<script type="text/javascript" src="./../../libs/cesium/Cesium1.98/Cesium.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="margin: 0; overflow: hidden; background: #fff; width: 100%; height: 100%; position: absolute; top: 0">
|
||||||
|
<div id="map" style="margin: 0 auto; width: 100%; height: 100%"></div>
|
||||||
|
|
||||||
|
<!-- ./video.mp4 -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIyNDMxOTA2NS1lY2Q3LTQ0YmUtOTE1Mi1iNWE2OGYwZjc0MjkiLCJpZCI6MjM1NjMwLCJpYXQiOjE3MzA3MjQzMTJ9.Xhu-9FyVEyqBKWEr0V9Sybt-elTCWHt9peL9-mNh-4E'
|
||||||
|
const viewer = new Cesium.Viewer('map', {});
|
||||||
|
viewer.scene.debugShowFramesPerSecond = true;
|
||||||
|
viewer.scene.globe.depthTestAgainstTerrain = true;
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
52
examples/cesiumEx/MOON.html
Normal file
52
examples/cesiumEx/MOON.html
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
<!--********************************************************************
|
||||||
|
* by jiawanlong
|
||||||
|
*********************************************************************-->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="stylesheet" href="./../../libs/cesium/Cesium1.98/Widgets/widgets.css">
|
||||||
|
<script type="text/javascript" src="./../../libs/cesium/Cesium1.98/Cesium.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="margin: 0; overflow: hidden; background: #fff; width: 100%; height: 100%; position: absolute; top: 0">
|
||||||
|
<div id="map" style="margin: 0 auto; width: 100%; height: 100%"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIyNDMxOTA2NS1lY2Q3LTQ0YmUtOTE1Mi1iNWE2OGYwZjc0MjkiLCJpZCI6MjM1NjMwLCJpYXQiOjE3MzA3MjQzMTJ9.Xhu-9FyVEyqBKWEr0V9Sybt-elTCWHt9peL9-mNh-4E'
|
||||||
|
const viewer = new Cesium.Viewer('map', {
|
||||||
|
imageryProvider: false,
|
||||||
|
baseLayerPicker: false,
|
||||||
|
});
|
||||||
|
|
||||||
|
// 开启帧率
|
||||||
|
viewer.scene.debugShowFramesPerSecond = true;
|
||||||
|
|
||||||
|
// 清除默认地形
|
||||||
|
viewer.scene.terrainProvider = new Cesium.EllipsoidTerrainProvider({});
|
||||||
|
|
||||||
|
let options = {
|
||||||
|
alpha: 1,
|
||||||
|
hue: 0,
|
||||||
|
saturation: 1,
|
||||||
|
gamma: 1,
|
||||||
|
brightness: 1
|
||||||
|
}
|
||||||
|
// 加载xyz
|
||||||
|
var xyz = new Cesium.UrlTemplateImageryProvider({
|
||||||
|
"credit": "月球影像",
|
||||||
|
tilingScheme: new Cesium.GeographicTilingScheme(),
|
||||||
|
"url": 'https://moon.bao.ac.cn/gis3globleMarsMoon/tiles/getTiles/MoonTile/2000/jpg/{z}/{reverseY}/{x}'
|
||||||
|
})
|
||||||
|
var imageryLayer = new Cesium.ImageryLayer(xyz, options);
|
||||||
|
viewer.imageryLayers.add(imageryLayer)
|
||||||
|
|
||||||
|
// 加载火星地形
|
||||||
|
viewer.terrainProvider = new Cesium.CesiumTerrainProvider({
|
||||||
|
url: 'https://moon.bao.ac.cn/gis3globleMarsMoon/tilesets/MoonTerrain/2000/'
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -13,6 +13,12 @@ var exampleConfig = {
|
|||||||
name: "综合应用",
|
name: "综合应用",
|
||||||
name_en: "ba222212se",
|
name_en: "ba222212se",
|
||||||
content: [
|
content: [
|
||||||
|
{
|
||||||
|
name: "",
|
||||||
|
name_en: "",
|
||||||
|
thumbnail: "0.jpg",
|
||||||
|
fileName: "00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "智慧园区运营中心",
|
name: "智慧园区运营中心",
|
||||||
name_en: "智慧园区运营中心",
|
name_en: "智慧园区运营中心",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* by jiawanlong*/
|
/* by jiawanlong*/
|
||||||
window.examplesResources = {
|
window.examplesResources = {
|
||||||
"app": "SuperMap iClient 9D",
|
"app": " iClient 9D",
|
||||||
"nav": {
|
"nav": {
|
||||||
"home": {
|
"home": {
|
||||||
"_name": "首页"
|
"_name": "首页"
|
||||||
@ -69,7 +69,7 @@ window.examplesResources = {
|
|||||||
"footer": {
|
"footer": {
|
||||||
"download": "下载",
|
"download": "下载",
|
||||||
"faq": "常见问题",
|
"faq": "常见问题",
|
||||||
"supermap": "超图官网",
|
"": "超图官网",
|
||||||
"dituhui": "地图慧",
|
"dituhui": "地图慧",
|
||||||
"support": "超图技术资源中心",
|
"support": "超图技术资源中心",
|
||||||
"tel": "电话 ",
|
"tel": "电话 ",
|
||||||
@ -103,11 +103,11 @@ window.examplesResources = {
|
|||||||
"title_googlelayer":"谷歌地图",
|
"title_googlelayer":"谷歌地图",
|
||||||
"title_osmlayer":"OSM地图",
|
"title_osmlayer":"OSM地图",
|
||||||
"title_binglayer":"Bing地图",
|
"title_binglayer":"Bing地图",
|
||||||
"title_tiledMapLayer4326": "SuperMap REST 地图服务底图",
|
"title_tiledMapLayer4326": " REST 地图服务底图",
|
||||||
"title_tiledMapLayer3857": "SuperMap REST 地图服务底图",
|
"title_tiledMapLayer3857": " REST 地图服务底图",
|
||||||
"title_imageMapLayer3857": "SuperMap REST 地图服务底图(image)",
|
"title_imageMapLayer3857": " REST 地图服务底图(image)",
|
||||||
"title_imageMapLayer4326": "SuperMap REST 地图服务底图(image)",
|
"title_imageMapLayer4326": " REST 地图服务底图(image)",
|
||||||
"title_tiledMapLayer_rasterfunction": "SuperMap REST 地图服务(栅格分析)",
|
"title_tiledMapLayer_rasterfunction": " REST 地图服务(栅格分析)",
|
||||||
"title_addressMatchService": "地址匹配服务",
|
"title_addressMatchService": "地址匹配服务",
|
||||||
"title_bufferAnalyst1": "缓冲区分析一",
|
"title_bufferAnalyst1": "缓冲区分析一",
|
||||||
"title_bufferAnalyst2": "缓冲区分析二",
|
"title_bufferAnalyst2": "缓冲区分析二",
|
||||||
@ -308,7 +308,7 @@ window.examplesResources = {
|
|||||||
"title_mapQueryByGeometry": "几何查询",
|
"title_mapQueryByGeometry": "几何查询",
|
||||||
"title_mapQueryBySQL": "SQL查询",
|
"title_mapQueryBySQL": "SQL查询",
|
||||||
"title_mapQueryBySQL_FGB": "SQL查询 (FGB)",
|
"title_mapQueryBySQL_FGB": "SQL查询 (FGB)",
|
||||||
"title_mapService": "SuperMap 地图信息",
|
"title_mapService": " 地图信息",
|
||||||
"title_measureArea": "面积测量",
|
"title_measureArea": "面积测量",
|
||||||
"title_measureDistance": "距离测量",
|
"title_measureDistance": "距离测量",
|
||||||
"title_tiledMapLayer": "3857底图",
|
"title_tiledMapLayer": "3857底图",
|
||||||
@ -319,7 +319,7 @@ window.examplesResources = {
|
|||||||
"title_tiledMapLayer_China2000": "地图_China2000",
|
"title_tiledMapLayer_China2000": "地图_China2000",
|
||||||
"title_tiledMapLayer_Beijing54": "地图_Beijing54",
|
"title_tiledMapLayer_Beijing54": "地图_Beijing54",
|
||||||
"title_tiledMapLayer_Xian80": "地图_Xian80",
|
"title_tiledMapLayer_Xian80": "地图_Xian80",
|
||||||
"title_fieldService": "SuperMap 字段信息",
|
"title_fieldService": " 字段信息",
|
||||||
"title_fieldStatistics": "字段查询统计",
|
"title_fieldStatistics": "字段查询统计",
|
||||||
"title_getGridCellInfos": "栅格查询",
|
"title_getGridCellInfos": "栅格查询",
|
||||||
"title_bufferAnalystService": "数据集缓冲区分析",
|
"title_bufferAnalystService": "数据集缓冲区分析",
|
||||||
@ -374,8 +374,8 @@ window.examplesResources = {
|
|||||||
"title_mapvCsvcar": "通勤图",
|
"title_mapvCsvcar": "通勤图",
|
||||||
"title_mapvCsvcarWGS84": "通勤图_WGS84",
|
"title_mapvCsvcarWGS84": "通勤图_WGS84",
|
||||||
"title_mapvBeijingVillage": "北京村庄分布图",
|
"title_mapvBeijingVillage": "北京村庄分布图",
|
||||||
"title_layerService": "SuperMap 图层信息",
|
"title_layerService": " 图层信息",
|
||||||
"title_tiledMapLayerNonEarth": "SuperMap REST 平面坐标系底图",
|
"title_tiledMapLayerNonEarth": " REST 平面坐标系底图",
|
||||||
"title_tiledMapLayerProj4": "自定义比例尺地图",
|
"title_tiledMapLayerProj4": "自定义比例尺地图",
|
||||||
"title_interpolationAnalystServiceKriging": "普通克吕金插值分析",
|
"title_interpolationAnalystServiceKriging": "普通克吕金插值分析",
|
||||||
"title_interpolationAnalystServiceKrigingUniversal": "泛克吕金插值分析",
|
"title_interpolationAnalystServiceKrigingUniversal": "泛克吕金插值分析",
|
||||||
@ -394,7 +394,7 @@ window.examplesResources = {
|
|||||||
"title_pulse": "闪烁点",
|
"title_pulse": "闪烁点",
|
||||||
"title_geometryBatchAnalystService": "几何对象批量空间分析",
|
"title_geometryBatchAnalystService": "几何对象批量空间分析",
|
||||||
"title_geometryOverlayBatchAnalystService": "几何对象批量叠加分析",
|
"title_geometryOverlayBatchAnalystService": "几何对象批量叠加分析",
|
||||||
"title_tiledMapLayerNoProj": "SuperMap REST 平面投影地图",
|
"title_tiledMapLayerNoProj": " REST 平面投影地图",
|
||||||
"title_AnimationFeature": "动画要素图",
|
"title_AnimationFeature": "动画要素图",
|
||||||
"title_Cluster": "聚点图",
|
"title_Cluster": "聚点图",
|
||||||
"title_graphiclayerCanvas": "纽约出租车18万点-canvas渲染",
|
"title_graphiclayerCanvas": "纽约出租车18万点-canvas渲染",
|
||||||
@ -407,8 +407,8 @@ window.examplesResources = {
|
|||||||
"title_drawFeatures": "图形绘制",
|
"title_drawFeatures": "图形绘制",
|
||||||
"title_editorOL": "iClient for OpenLayers 示例代码",
|
"title_editorOL": "iClient for OpenLayers 示例代码",
|
||||||
"title_examplesOL": "iClient for OpenLayers 示范程序",
|
"title_examplesOL": "iClient for OpenLayers 示范程序",
|
||||||
"title_editorLeaflet": "By JWL",
|
"title_editorLeaflet": "Cesium 社区- jiawanlong",
|
||||||
"title_examplesLeaflet": "By JWL",
|
"title_examplesLeaflet": "Cesium 社区 - jiawanlong",
|
||||||
"title_editorMBGL": "iClient for MapboxGL 示例代码",
|
"title_editorMBGL": "iClient for MapboxGL 示例代码",
|
||||||
"title_examplesMBGL": "iClient for MapboxGL 示范程序",
|
"title_examplesMBGL": "iClient for MapboxGL 示范程序",
|
||||||
"title_editorMLBGL": "iClient for MapLibreGL 示例代码",
|
"title_editorMLBGL": "iClient for MapLibreGL 示例代码",
|
||||||
@ -417,8 +417,8 @@ window.examplesResources = {
|
|||||||
"title_editorComponent": "组件示例代码",
|
"title_editorComponent": "组件示例代码",
|
||||||
"title_editorClassic": "iClient Classic 示例代码",
|
"title_editorClassic": "iClient Classic 示例代码",
|
||||||
"title_examplesClassic": "iClient Classic 示范程序",
|
"title_examplesClassic": "iClient Classic 示范程序",
|
||||||
"title_editor3DWebGL": "SuperMap 3D-WebGL 示例代码",
|
"title_editor3DWebGL": " 3D-WebGL 示例代码",
|
||||||
"title_examples3DWebGL": "SuperMap 3D-WebGL 示范程序",
|
"title_examples3DWebGL": " 3D-WebGL 示范程序",
|
||||||
"title_freehandDrawFeatures": "手写图形绘制",
|
"title_freehandDrawFeatures": "手写图形绘制",
|
||||||
"title_iPortalQueryMaps": "iPortal 地图列表",
|
"title_iPortalQueryMaps": "iPortal 地图列表",
|
||||||
"title_iPortalQueryResources": "iPortal 资源列表",
|
"title_iPortalQueryResources": "iPortal 资源列表",
|
||||||
@ -472,7 +472,7 @@ window.examplesResources = {
|
|||||||
"title_osmBuildingsLeaflet": "leaflet 建筑立体效果",
|
"title_osmBuildingsLeaflet": "leaflet 建筑立体效果",
|
||||||
"title_rankSymbolThemeLayer": "符号等级专题图",
|
"title_rankSymbolThemeLayer": "符号等级专题图",
|
||||||
"title_snapDrawFeatures": "捕捉图形绘制",
|
"title_snapDrawFeatures": "捕捉图形绘制",
|
||||||
"title_superMapCloudLayer": "超图云地图",
|
"title_CloudLayer": "超图云地图",
|
||||||
"title_tiandituLayer_ll": "天地图-矢量-经纬度",
|
"title_tiandituLayer_ll": "天地图-矢量-经纬度",
|
||||||
"title_tiandituLayer_mecartor": "天地图-影像-墨卡托",
|
"title_tiandituLayer_mecartor": "天地图-影像-墨卡托",
|
||||||
"title_tiandituLayer_terrain": "天地图-地形-经纬度",
|
"title_tiandituLayer_terrain": "天地图-地形-经纬度",
|
||||||
@ -523,19 +523,19 @@ window.examplesResources = {
|
|||||||
"title_mapVLayerPolygon": "面",
|
"title_mapVLayerPolygon": "面",
|
||||||
"title_mapVLayerPolygonWGS84": "面_WGS84",
|
"title_mapVLayerPolygonWGS84": "面_WGS84",
|
||||||
"title_planesMonitor": "航班监控",
|
"title_planesMonitor": "航班监控",
|
||||||
"title_vectorTileLayerBoundary": "SuperMap REST 强边界风格矢量底图",
|
"title_vectorTileLayerBoundary": " REST 强边界风格矢量底图",
|
||||||
"title_vectorTileLayerDarkBlue": "SuperMap REST 深夜蓝黑风格矢量底图",
|
"title_vectorTileLayerDarkBlue": " REST 深夜蓝黑风格矢量底图",
|
||||||
"title_vectorTileLayerHelloKitty": "SuperMap REST HelloKitty风格矢量底图",
|
"title_vectorTileLayerHelloKitty": " REST HelloKitty风格矢量底图",
|
||||||
"title_vectorTileLayerMVT": "SuperMap MVT格式矢量瓦片",
|
"title_vectorTileLayerMVT": " MVT格式矢量瓦片",
|
||||||
"title_vectorTileLayerMVT4326": "SuperMap MVT格式矢量瓦片",
|
"title_vectorTileLayerMVT4326": " MVT格式矢量瓦片",
|
||||||
"title_vectorTileLayerNatural": "SuperMap REST 淡雅绿风格矢量底图",
|
"title_vectorTileLayerNatural": " REST 淡雅绿风格矢量底图",
|
||||||
"title_vectorTileLayerNight": "SuperMap REST 月夜风格矢量底图",
|
"title_vectorTileLayerNight": " REST 月夜风格矢量底图",
|
||||||
"title_vectorTileLayerNormal": "SuperMap REST 矢量瓦片",
|
"title_vectorTileLayerNormal": " REST 矢量瓦片",
|
||||||
"title_iportalWebMap_range": "SuperMap iPortal 分段专题图",
|
"title_iportalWebMap_range": " iPortal 分段专题图",
|
||||||
"title_iportalWebMap_heat": "SuperMap iPortal 热力图",
|
"title_iportalWebMap_heat": " iPortal 热力图",
|
||||||
"title_iportalWebMap_unicode": "SuperMap iPortal 点样式",
|
"title_iportalWebMap_unicode": " iPortal 点样式",
|
||||||
"title_iportalWebMap_unique": "SuperMap iPortal 单值专题图",
|
"title_iportalWebMap_unique": " iPortal 单值专题图",
|
||||||
"title_iportalWebMap_label": "SuperMap iPortal 标签专题图",
|
"title_iportalWebMap_label": " iPortal 标签专题图",
|
||||||
"title_earthquakeHeatMapLayer": "2005-2016地震次数(Classic)",
|
"title_earthquakeHeatMapLayer": "2005-2016地震次数(Classic)",
|
||||||
"title_echartsEarthquake": "2005到2016年地震发生情况",
|
"title_echartsEarthquake": "2005到2016年地震发生情况",
|
||||||
"title_l_echartsEarthquake": "2001年到2014年地震热力图",
|
"title_l_echartsEarthquake": "2001年到2014年地震热力图",
|
||||||
@ -633,7 +633,7 @@ window.examplesResources = {
|
|||||||
"title_componentsCoordinateConversion_Vue":"坐标转换组件",
|
"title_componentsCoordinateConversion_Vue":"坐标转换组件",
|
||||||
"title_attributes_Vue":"属性表组件",
|
"title_attributes_Vue":"属性表组件",
|
||||||
"title_layerColor_Vue":"图层颜色组件",
|
"title_layerColor_Vue":"图层颜色组件",
|
||||||
"title_componentsTimeLineSupermap_Vue": "超图大厦历史影像",
|
"title_componentsTimeLine_Vue": "超图大厦历史影像",
|
||||||
"title_componentsTimeLineCloud_Vue": "气象卫星云图",
|
"title_componentsTimeLineCloud_Vue": "气象卫星云图",
|
||||||
"title_componentsTimeLineNcp_Vue": "疫情历史回放",
|
"title_componentsTimeLineNcp_Vue": "疫情历史回放",
|
||||||
"title_componentsTimeLineTracklayer_Vue": "轨迹回放",
|
"title_componentsTimeLineTracklayer_Vue": "轨迹回放",
|
||||||
@ -703,8 +703,8 @@ window.examplesResources = {
|
|||||||
"text_data_file":"数据文件",
|
"text_data_file":"数据文件",
|
||||||
"text_data_name":"数据名称",
|
"text_data_name":"数据名称",
|
||||||
"text_user_data":"用户数据",
|
"text_user_data":"用户数据",
|
||||||
"text_workspace":"SuperMap工作空间",
|
"text_workspace":"工作空间",
|
||||||
"text_UDB":"SuperMap UDB数据",
|
"text_UDB":" UDB数据",
|
||||||
"text_shapefile":"shp空间数据",
|
"text_shapefile":"shp空间数据",
|
||||||
"text_geojson":"geojson数据",
|
"text_geojson":"geojson数据",
|
||||||
"text_smtiles":"smtiles",
|
"text_smtiles":"smtiles",
|
||||||
@ -892,7 +892,7 @@ window.examplesResources = {
|
|||||||
"text_positionCoordinate": "位置坐标:",
|
"text_positionCoordinate": "位置坐标:",
|
||||||
"text_mouse": "鼠标",
|
"text_mouse": "鼠标",
|
||||||
"text_event": "事件",
|
"text_event": "事件",
|
||||||
"text_mapOverlay": "SuperMap REST 地图叠加",
|
"text_mapOverlay": " REST 地图叠加",
|
||||||
"text_opacity": "透明度",
|
"text_opacity": "透明度",
|
||||||
"text_input_tips_opacity": "设置图层的不透明度,取值[0-1]之间",
|
"text_input_tips_opacity": "设置图层的不透明度,取值[0-1]之间",
|
||||||
"text_input_user_name": "输入昵称/用户名",
|
"text_input_user_name": "输入昵称/用户名",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>3D_DEMOS-cesium-three-webgl</title>
|
<title>Cesium 社区 - jiawanlong</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user