{"id":74393,"date":"2026-02-09T18:25:25","date_gmt":"2026-02-09T10:25:25","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/74393.html"},"modified":"2026-02-09T18:25:25","modified_gmt":"2026-02-09T10:25:25","slug":"vue3-cesium-%e4%b8%89%e7%bb%b4%e5%ae%9e%e4%bd%93%e6%9d%90%e8%b4%a8%e5%bc%80%e5%8f%91%e5%85%a5%e9%97%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/74393.html","title":{"rendered":"Vue3 + Cesium \u4e09\u7ef4\u5b9e\u4f53\u6750\u8d28\u5f00\u53d1\u5165\u95e8\u6559\u7a0b"},"content":{"rendered":"<h2 style=\"background-color:transparent\">\u4e00\u3001\u524d\u8a00<\/h2>\n<h4 style=\"background-color:transparent\">1.1 \u672c\u6559\u7a0b\u76ee\u6807<\/h4>\n<p>\u672c\u6559\u7a0b\u65e8\u5728\u5e2e\u52a9\u638c\u63e1\u00a0Vue3 &#043; Cesium\u00a0\u5b9e\u4f53\u6750\u8d28\u7cfb\u7edf\u6838\u5fc3\u7528\u6cd5&#xff0c;\u6db5\u76d6\u4e94\u79cd\u6838\u5fc3\u6750\u8d28\u7c7b\u578b&#xff1a;\u989c\u8272\u3001\u56fe\u50cf\u3001\u68cb\u76d8\u683c\u3001\u6761\u7eb9\u3001\u7f51\u683c\u6750\u8d28\u3002\u6bcf\u79cd\u6750\u8d28\u90fd\u914d\u6709\u8be6\u7ec6\u53c2\u6570\u89e3\u6790\u548c\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b&#xff0c;\u5feb\u901f\u4e0a\u624b\u4e3a\u4e09\u7ef4\u5b9e\u4f53\u6dfb\u52a0\u4e30\u5bcc\u7684\u89c6\u89c9\u6548\u679c\u3002<\/p>\n<h4>1.2 \u57fa\u7840\u77e5\u8bc6\u8981\u6c42<\/h4>\n<ul>\n<li>\n<p>Vue3\u57fa\u7840&#xff1a;\u4e86\u89e3\u7ec4\u5408\u5f0fAPI\u3001\u7ec4\u4ef6\u751f\u547d\u5468\u671f<\/p>\n<\/li>\n<li>\n<p>Cesium\u57fa\u7840&#xff1a;\u719f\u6089\u5b9e\u4f53\u521b\u5efa\u3001\u5750\u6807\u7cfb\u7edf<\/p>\n<\/li>\n<li>\n<p>JavaScript\u57fa\u7840&#xff1a;ES6&#043;\u8bed\u6cd5\u3001\u5f02\u6b65\u7f16\u7a0b<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e8c\u3001\u9879\u76ee\u57fa\u7840\u51c6\u5907<\/h3>\n<h4>2.1 \u57fa\u7840\u9879\u76ee\u7ed3\u6784<\/h4>\n<p>vue<\/p>\n<p>&lt;!&#8211; App.vue &#8211;&gt;<br \/>\n&lt;template&gt;<br \/>\n  &lt;div id&#061;&#034;cesiumContainer&#034; style&#061;&#034;width: 100vw; height: 100vh;&#034;&gt;&lt;\/div&gt;<br \/>\n&lt;\/template&gt;<\/p>\n<p>&lt;script setup&gt;<br \/>\nimport * as Cesium from &#039;cesium&#039;<br \/>\nimport &#034;cesium\/Build\/Cesium\/Widgets\/widgets.css&#034;<br \/>\nimport { onMounted, onUnmounted } from &#039;vue&#039;<\/p>\n<p>let viewer &#061; null;<\/p>\n<p>onMounted(() &#061;&gt; {<br \/>\n  \/\/ 1. \u914d\u7f6e Ion Token<br \/>\n  Cesium.Ion.defaultAccessToken &#061; &#039;\u4f60\u7684Cesium Ion Token&#039;;<\/p>\n<p>  \/\/ 2. \u521d\u59cb\u5316 Viewer<br \/>\n  viewer &#061; new Cesium.Viewer(&#039;cesiumContainer&#039;, {<br \/>\n    animation: false, baseLayerPicker: false, fullscreenButton: false,<br \/>\n    geocoder: false, homeButton: false, infoBox: false,<br \/>\n    sceneModePicker: false, selectionIndicator: false, timeline: false,<br \/>\n    navigationHelpButton: false<br \/>\n  });<\/p>\n<p>  \/\/ \u9690\u85cf\u9ed8\u8ba4\u6c34\u5370<br \/>\n  viewer.cesiumWidget.creditContainer.style.display &#061; &#039;none&#039;;<\/p>\n<p>  \/\/ &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; \u4ee5\u4e0b\u5f00\u59cb\u6750\u8d28\u4ee3\u7801\u793a\u4f8b &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n});<\/p>\n<p>onUnmounted(() &#061;&gt; {<br \/>\n  if (viewer) {<br \/>\n    viewer.destroy();<br \/>\n    viewer &#061; null;<br \/>\n  }<br \/>\n});<br \/>\n&lt;\/script&gt;<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u989c\u8272\u6750\u8d28&#xff08;Color&#xff09;<\/h3>\n<h4 style=\"background-color:transparent\">3.1 \u529f\u80fd\u8bf4\u660e<\/h4>\n<p>\u989c\u8272\u6750\u8d28\u662f\u00a0\u6700\u7b80\u5355\u76f4\u63a5\u00a0\u7684\u6750\u8d28\u7c7b\u578b&#xff0c;\u7528\u4e8e\u5b9e\u4f53\u7eaf\u8272\u586b\u5145&#xff0c;\u652f\u6301\u900f\u660e\u5ea6\u3001RGB\/HSL\u591a\u79cd\u989c\u8272\u683c\u5f0f&#xff0c;\u9002\u7528\u4e8e\u5feb\u901f\u539f\u578b\u5f00\u53d1\u548c\u57fa\u7840\u53ef\u89c6\u5316\u9700\u6c42\u3002<\/p>\n<h4>3.2 \u5b8c\u6574\u4ee3\u7801\u793a\u4f8b<\/h4>\n<p>javascript<\/p>\n<p>\/\/ 1. \u5b9a\u4e49\u7acb\u65b9\u4f53\u4f4d\u7f6e&#xff08;\u7f8e\u56fd\u582a\u8428\u65af\u5dde&#xff09;<br \/>\nconst colorCubePos &#061; Cesium.Cartesian3.fromDegrees(-98.5855, 39.8333, 500);<\/p>\n<p>\/\/ 2. \u6dfb\u52a0\u5e26\u989c\u8272\u6750\u8d28\u7684\u7acb\u65b9\u4f53\u5b9e\u4f53<br \/>\nviewer.entities.add({<br \/>\n  id: &#039;color-cube-demo&#039;,<br \/>\n  position: colorCubePos,<br \/>\n  name: &#039;\u989c\u8272\u6750\u8d28\u7acb\u65b9\u4f53&#039;,<\/p>\n<p>  box: {<br \/>\n    dimensions: new Cesium.Cartesian3(300000, 200000, 150000), \/\/ \u957f\u5bbd\u9ad8(\u7c73)<br \/>\n    material: Cesium.Color.RED.withAlpha(0.7), \/\/ \u6838\u5fc3&#xff1a;\u7ea2\u827270%\u900f\u660e<br \/>\n    outline: true,           \/\/ \u663e\u793a\u8fb9\u6846<br \/>\n    outlineColor: Cesium.Color.WHITE,<br \/>\n    outlineWidth: 2<br \/>\n  }<br \/>\n});<\/p>\n<p>\/\/ 3. \u76f8\u673a\u5b9a\u4f4d\u5230\u5b9e\u4f53<br \/>\nviewer.camera.flyTo({<br \/>\n  destination: Cesium.Cartesian3.fromDegrees(-98.5855, 39.8333, 1500000),<br \/>\n  duration: 2<br \/>\n});<\/p>\n<p>3.3 \u53c2\u6570\u89e3\u6790<\/p>\n<table>\n<tr>\u53c2\u6570\u7c7b\u578b\u9ed8\u8ba4\u503c\u8bf4\u660e\u793a\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>color<\/td>\n<td>Cesium.Color<\/td>\n<td>\u5fc5\u987b<\/td>\n<td>\u989c\u8272\u503c&#xff0c;\u652f\u6301\u591a\u79cd\u683c\u5f0f<\/td>\n<td>Cesium.Color.RED<\/td>\n<\/tr>\n<tr>\n<td>\u900f\u660e\u5ea6<\/td>\n<td>Number<\/td>\n<td>1.0<\/td>\n<td>0-1\u4e4b\u95f4\u7684\u900f\u660e\u5ea6<\/td>\n<td>.withAlpha(0.7)<\/td>\n<\/tr>\n<tr>\n<td>toCssColorString()<\/td>\n<td>Method<\/td>\n<td>&#8211;<\/td>\n<td>\u8f6c\u4e3aCSS\u989c\u8272\u5b57\u7b26\u4e32<\/td>\n<td>.toCssColorString()<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"311\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209102523-6989b613b771c.png\" width=\"384\" \/><\/p>\n<h3 style=\"background-color:transparent\">\u56db\u3001\u56fe\u50cf\u6750\u8d28&#xff08;Image&#xff09;<\/h3>\n<h4>4.1 \u529f\u80fd\u8bf4\u660e<\/h4>\n<p>\u56fe\u50cf\u6750\u8d28\u5141\u8bb8\u5c06\u00a0\u5916\u90e8\u56fe\u7247\u00a0\u4f5c\u4e3a\u7eb9\u7406\u8d34\u5728\u5b9e\u4f53\u8868\u9762&#xff0c;\u652f\u6301\u5e73\u94fa\u91cd\u590d\u3001\u65cb\u8f6c\u3001\u900f\u660e\u5ea6\u7b49\u9ad8\u7ea7\u63a7\u5236&#xff0c;\u9002\u7528\u4e8e\u521b\u5efa\u903c\u771f\u7684\u5efa\u7b51\u8868\u9762\u3001\u5730\u5f62\u7eb9\u7406\u7b49\u6548\u679c\u3002<\/p>\n<h4 style=\"background-color:transparent\">4.2 \u5b8c\u6574\u4ee3\u7801\u793a\u4f8b<\/h4>\n<p>javascript<\/p>\n<p>\/\/ \u5728 viewer \u521d\u59cb\u5316\u540e\u6dfb\u52a0<br \/>\n\/\/ 1. \u5b9a\u4e49\u7acb\u65b9\u4f53\u4f4d\u7f6e&#xff08;\u7f8e\u56fd\u5fb7\u514b\u8428\u65af\u5dde&#xff09;<br \/>\nconst imageCubePos &#061; Cesium.Cartesian3.fromDegrees(-97.7431, 30.2672, 500);<\/p>\n<p>\/\/ 2. \u521b\u5efa\u56fe\u50cf\u6750\u8d28<br \/>\nconst imageMaterial &#061; new Cesium.ImageMaterialProperty({<br \/>\n  image: &#039;Assets\/Textures\/logo.png&#039;, \/\/ \u56fe\u7247URL<br \/>\n  repeat: new Cesium.Cartesian2(4, 2),             \/\/ \u6c34\u5e73\u548c\u5782\u76f4\u91cd\u590d\u6b21\u6570<br \/>\n  color: Cesium.Color.WHITE.withAlpha(0.9),        \/\/ \u989c\u8272\u53e0\u52a0<br \/>\n  transparent: true,                               \/\/ \u542f\u7528\u900f\u660e\u5ea6<br \/>\n  colorToAlpha: 0.1,                               \/\/ \u989c\u8272\u8f6c\u900f\u660e\u5ea6\u9608\u503c<br \/>\n  colorToAlphaEdge: 0.5,                           \/\/ \u8fb9\u7f18\u5e73\u6ed1\u5ea6<br \/>\n  rotation: 0,                                     \/\/ \u65cb\u8f6c\u89d2\u5ea6(\u5f27\u5ea6)<br \/>\n  offset: new Cesium.Cartesian2(0, 0)              \/\/ UV\u504f\u79fb<br \/>\n});<\/p>\n<p>\/\/ 3. \u6dfb\u52a0\u5e26\u56fe\u50cf\u6750\u8d28\u7684\u7acb\u65b9\u4f53\u5b9e\u4f53<br \/>\n  viewer.entities.add({<br \/>\n  id: &#039;image-cube-demo&#039;,<br \/>\n  position: imageCubePos,<br \/>\n  name: &#039;\u56fe\u50cf\u6750\u8d28\u7acb\u65b9\u4f53&#039;,<\/p>\n<p>  box: {<br \/>\n    dimensions: new Cesium.Cartesian3(400000, 300000, 200000),<br \/>\n    material: imageMaterial,  \/\/ \u6838\u5fc3&#xff1a;\u56fe\u50cf\u6750\u8d28<br \/>\n    outline: true,<br \/>\n    outlineColor: Cesium.Color.BLACK,<br \/>\n    outlineWidth: 1<br \/>\n  }<br \/>\n});<\/p>\n<p>\/\/ 4. \u76f8\u673a\u5b9a\u4f4d<br \/>\nviewer.camera.flyTo({<br \/>\n  destination: Cesium.Cartesian3.fromDegrees(-97.7431, 30.2672, 1800000),<br \/>\n  duration: 2.5<br \/>\n});<\/p>\n<h4>4.3 \u53c2\u6570\u89e3\u6790<\/h4>\n<table>\n<tr>\u53c2\u6570\u7c7b\u578b\u9ed8\u8ba4\u503c\u8bf4\u660e\u91cd\u8981\u7a0b\u5ea6<\/tr>\n<tbody>\n<tr>\n<td>image<\/td>\n<td>String\/Object<\/td>\n<td>\u5fc5\u987b<\/td>\n<td>\u56fe\u50cfURL\u6216\u914d\u7f6e\u5bf9\u8c61<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50\u2b50<\/td>\n<\/tr>\n<tr>\n<td>repeat<\/td>\n<td>Cartesian2<\/td>\n<td>(1,1)<\/td>\n<td>UV\u91cd\u590d\u6b21\u6570<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50<\/td>\n<\/tr>\n<tr>\n<td>color<\/td>\n<td>Color<\/td>\n<td>WHITE<\/td>\n<td>\u989c\u8272\u53e0\u52a0&#xff0c;\u8c03\u6574\u7eb9\u7406\u8272\u8c03<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50<\/td>\n<\/tr>\n<tr>\n<td>transparent<\/td>\n<td>Boolean<\/td>\n<td>false<\/td>\n<td>\u662f\u5426\u542f\u7528\u900f\u660e\u5ea6<\/td>\n<td>\u2b50\u2b50\u2b50<\/td>\n<\/tr>\n<tr>\n<td>colorToAlpha<\/td>\n<td>Number<\/td>\n<td>0.0<\/td>\n<td>\u989c\u8272\u8f6c\u900f\u660e\u5ea6\u9608\u503c(0-1)<\/td>\n<td>\u2b50\u2b50<\/td>\n<\/tr>\n<tr>\n<td>rotation<\/td>\n<td>Number<\/td>\n<td>0<\/td>\n<td>\u7eb9\u7406\u65cb\u8f6c\u89d2\u5ea6(\u5f27\u5ea6)<\/td>\n<td>\u2b50\u2b50<\/td>\n<\/tr>\n<tr>\n<td>offset<\/td>\n<td>Cartesian2<\/td>\n<td>(0,0)<\/td>\n<td>UV\u5750\u6807\u504f\u79fb<\/td>\n<td>\u2b50\u2b50<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"365\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209102524-6989b6141bfd0.png\" width=\"486\" \/><\/p>\n<hr \/>\n<h3 style=\"background-color:transparent\">\u4e94\u3001\u68cb\u76d8\u683c\u6750\u8d28&#xff08;Checkerboard&#xff09;<\/h3>\n<h4 style=\"background-color:transparent\">5.1 \u529f\u80fd\u8bf4\u660e<\/h4>\n<p>\u68cb\u76d8\u683c\u6750\u8d28\u521b\u5efa\u00a0\u4ea4\u66ff\u989c\u8272\u00a0\u7684\u68cb\u76d8\u56fe\u6848&#xff0c;\u5e38\u7528\u4e8e\u8c03\u8bd5\u3001\u6d4b\u8bd5\u7f51\u683c\u5bf9\u9f50&#xff0c;\u6216\u521b\u5efa\u7279\u6b8a\u7684\u89c6\u89c9\u6548\u679c&#xff0c;\u5982\u68cb\u76d8\u5730\u9762\u3001\u7f51\u683c\u5316\u8868\u9762\u7b49\u3002<\/p>\n<h4 style=\"background-color:transparent\">5.2 \u5b9e\u4f8b\u4ee3\u7801<\/h4>\n<p>\/\/ 1. \u5b9a\u4e49\u7acb\u65b9\u4f53\u4f4d\u7f6e&#xff08;\u7f8e\u56fd\u79d1\u7f57\u62c9\u591a\u5dde&#xff09;<br \/>\nconst checkerboardPos &#061; Cesium.Cartesian3.fromDegrees(-105.7821, 39.5501, 500);<\/p>\n<p>\/\/ 2. \u521b\u5efa\u68cb\u76d8\u683c\u6750\u8d28<br \/>\nconst checkerboardMaterial &#061; new Cesium.CheckerboardMaterialProperty({<br \/>\n  evenColor: Cesium.Color.WHITE,           \/\/ \u5076\u6570\u683c\u989c\u8272<br \/>\n  oddColor: Cesium.Color.BLACK,            \/\/ \u5947\u6570\u683c\u989c\u8272<br \/>\n  repeat: new Cesium.Cartesian2(10, 10),   \/\/ \u68cb\u76d8\u683c\u5bc6\u5ea6<br \/>\n  colorToAlpha: 0.0,                       \/\/ \u989c\u8272\u8f6c\u900f\u660e\u5ea6<br \/>\n  colorToAlphaEdge: 0.0,                   \/\/ \u8fb9\u7f18\u5e73\u6ed1<br \/>\n  transparent: false,                      \/\/ \u662f\u5426\u900f\u660e<br \/>\n  offset: new Cesium.Cartesian2(0, 0),     \/\/ UV\u504f\u79fb<br \/>\n  rotation: 0,                             \/\/ \u65cb\u8f6c\u89d2\u5ea6<br \/>\n  scale: 1.0                               \/\/ \u6574\u4f53\u7f29\u653e<br \/>\n});<\/p>\n<p>\/\/ 3. \u6dfb\u52a0\u5e26\u68cb\u76d8\u683c\u6750\u8d28\u7684\u7acb\u65b9\u4f53\u5b9e\u4f53<br \/>\n  viewer.entities.add({<br \/>\n  id: &#039;checkerboard-cube-demo&#039;,<br \/>\n  position: checkerboardPos,<br \/>\n  name: &#039;\u68cb\u76d8\u683c\u6750\u8d28\u7acb\u65b9\u4f53&#039;,<\/p>\n<p>  box: {<br \/>\n    dimensions: new Cesium.Cartesian3(350000, 350000, 350000),<br \/>\n    material: checkerboardMaterial,  \/\/ \u6838\u5fc3&#xff1a;\u68cb\u76d8\u683c\u6750\u8d28<br \/>\n    outline: true,<br \/>\n    outlineColor: Cesium.Color.YELLOW,<br \/>\n    outlineWidth: 2<br \/>\n  }<br \/>\n});<\/p>\n<p>\/\/ 4. \u76f8\u673a\u5b9a\u4f4d<br \/>\nviewer.camera.flyTo({<br \/>\n  destination: Cesium.Cartesian3.fromDegrees(-105.7821, 39.5501, 2000000),<br \/>\n  duration: 3<br \/>\n});<\/p>\n<p>javascript<\/p>\n<\/p>\n<h4>5.3 \u53c2\u6570\u89e3\u6790<\/h4>\n<table>\n<tr>\u53c2\u6570\u7c7b\u578b\u9ed8\u8ba4\u503c\u8bf4\u660e\u89c6\u89c9\u5f71\u54cd<\/tr>\n<tbody>\n<tr>\n<td>evenColor<\/td>\n<td>Color<\/td>\n<td>\u5fc5\u987b<\/td>\n<td>\u5076\u6570\u683c\u989c\u8272<\/td>\n<td>\u76f4\u63a5\u51b3\u5b9a\u5916\u89c2<\/td>\n<\/tr>\n<tr>\n<td>oddColor<\/td>\n<td>Color<\/td>\n<td>\u5fc5\u987b<\/td>\n<td>\u5947\u6570\u683c\u989c\u8272<\/td>\n<td>\u76f4\u63a5\u51b3\u5b9a\u5916\u89c2<\/td>\n<\/tr>\n<tr>\n<td>repeat<\/td>\n<td>Cartesian2<\/td>\n<td>(1,1)<\/td>\n<td>\u68cb\u76d8\u683c\u5bc6\u5ea6<\/td>\n<td>\u5bc6\u5ea6\u8d8a\u5927\u683c\u5b50\u8d8a\u5c0f<\/td>\n<\/tr>\n<tr>\n<td>colorToAlpha<\/td>\n<td>Number<\/td>\n<td>0.0<\/td>\n<td>\u989c\u8272\u8f6c\u900f\u660e\u5ea6\u9608\u503c<\/td>\n<td>\u521b\u5efa\u534a\u900f\u660e\u6548\u679c<\/td>\n<\/tr>\n<tr>\n<td>rotation<\/td>\n<td>Number<\/td>\n<td>0<\/td>\n<td>\u65cb\u8f6c\u89d2\u5ea6(\u5f27\u5ea6)<\/td>\n<td>\u521b\u5efa\u659c\u5411\u68cb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209102524-6989b6143a110.png\" \/><\/p>\n<h4 style=\"background-color:transparent\"><\/h4>\n<h3>\u516d\u3001\u6761\u7eb9\u6750\u8d28&#xff08;Stripe&#xff09;<\/h3>\n<h4 style=\"background-color:transparent\">6.1 \u529f\u80fd\u8bf4\u660e<\/h4>\n<p>\u6761\u7eb9\u6750\u8d28\u521b\u5efa\u00a0\u4ea4\u66ff\u989c\u8272\u6761\u7eb9\u00a0\u56fe\u6848&#xff0c;\u652f\u6301\u6c34\u5e73\u548c\u5782\u76f4\u65b9\u5411&#xff0c;\u5e38\u7528\u4e8e\u521b\u5efa\u8b66\u793a\u6807\u8bc6\u3001\u65b9\u5411\u6307\u5f15\u3001\u7279\u6b8a\u6807\u8bb0\u7b49\u6548\u679c\u3002<\/p>\n<h4 style=\"background-color:transparent\">6.2 \u4ee3\u7801\u793a\u4f8b<\/h4>\n<p>javascript<\/p>\n<p>\/\/ 1. \u5b9a\u4e49\u7acb\u65b9\u4f53\u4f4d\u7f6e&#xff08;\u7f8e\u56fd\u5185\u534e\u8fbe\u5dde&#xff09;<br \/>\nconst stripePos &#061; Cesium.Cartesian3.fromDegrees(-119.7661, 36.7378, 500);<\/p>\n<p>\/\/ 2. \u521b\u5efa\u6761\u7eb9\u6750\u8d28<br \/>\nconst stripeMaterial &#061; new Cesium.StripeMaterialProperty({<br \/>\n  evenColor: Cesium.Color.RED,                    \/\/ \u5076\u6570\u6761\u7eb9\u989c\u8272<br \/>\n  oddColor: Cesium.Color.YELLOW,                  \/\/ \u5947\u6570\u6761\u7eb9\u989c\u8272<br \/>\n  repeat: 16,                                     \/\/ \u6761\u7eb9\u6570\u91cf<br \/>\n  orientation: Cesium.StripeOrientation.HORIZONTAL, \/\/ \u6761\u7eb9\u65b9\u5411<br \/>\n  offset: 0,                                      \/\/ \u6761\u7eb9\u504f\u79fb(0-1)<br \/>\n  colorToAlpha: 0.0,                              \/\/ \u989c\u8272\u8f6c\u900f\u660e\u5ea6<br \/>\n  colorToAlphaEdge: 0.0,                          \/\/ \u8fb9\u7f18\u5e73\u6ed1<br \/>\n  transparent: false,                             \/\/ \u662f\u5426\u900f\u660e<br \/>\n  rotation: 0,                                    \/\/ \u65cb\u8f6c\u89d2\u5ea6<br \/>\n  scale: 1.0                                      \/\/ \u6574\u4f53\u7f29\u653e<br \/>\n});<\/p>\n<p>\/\/ 3. \u6dfb\u52a0\u5e26\u6761\u7eb9\u6750\u8d28\u7684\u7acb\u65b9\u4f53\u5b9e\u4f53<br \/>\n viewer.entities.add({<br \/>\n  id: &#039;stripe-cube-demo&#039;,<br \/>\n  position: stripePos,<br \/>\n  name: &#039;\u6761\u7eb9\u6750\u8d28\u7acb\u65b9\u4f53&#039; ,<br \/>\n  box: {<br \/>\n    dimensions: new Cesium.Cartesian3(320000, 320000, 320000),<br \/>\n    material: stripeMaterial,  \/\/ \u6838\u5fc3&#xff1a;\u6761\u7eb9\u6750\u8d28<br \/>\n    outline: true,<br \/>\n    outlineColor: Cesium.Color.WHITE,<br \/>\n    outlineWidth: 1<br \/>\n  }<br \/>\n});<\/p>\n<p>\/\/ 4. \u76f8\u673a\u5b9a\u4f4d<br \/>\nviewer.camera.flyTo({<br \/>\n  destination: Cesium.Cartesian3.fromDegrees(-119.7661, 36.7378, 1800000),<br \/>\n  duration: 2.5<br \/>\n});<\/p>\n<h4>6.3 \u53c2\u6570\u89e3\u6790<\/h4>\n<table>\n<tr>\u53c2\u6570\u7c7b\u578b\u9ed8\u8ba4\u503c\u8bf4\u660e\u53ef\u9009\u503c<\/tr>\n<tbody>\n<tr>\n<td>evenColor<\/td>\n<td>Color<\/td>\n<td>\u5fc5\u987b<\/td>\n<td>\u5076\u6570\u6761\u7eb9\u989c\u8272<\/td>\n<td>\u4efb\u610fCesium.Color<\/td>\n<\/tr>\n<tr>\n<td>oddColor<\/td>\n<td>Color<\/td>\n<td>\u5fc5\u987b<\/td>\n<td>\u5947\u6570\u6761\u7eb9\u989c\u8272<\/td>\n<td>\u4efb\u610fCesium.Color<\/td>\n<\/tr>\n<tr>\n<td>repeat<\/td>\n<td>Number<\/td>\n<td>1<\/td>\n<td>\u6761\u7eb9\u91cd\u590d\u6b21\u6570<\/td>\n<td>\u6b63\u6574\u6570<\/td>\n<\/tr>\n<tr>\n<td>orientation<\/td>\n<td>StripeOrientation<\/td>\n<td>HORIZONTAL<\/td>\n<td>\u6761\u7eb9\u65b9\u5411<\/td>\n<td>HORIZONTAL \/ VERTICAL<\/td>\n<\/tr>\n<tr>\n<td>offset<\/td>\n<td>Number<\/td>\n<td>0<\/td>\n<td>\u6761\u7eb9\u504f\u79fb\u91cf<\/td>\n<td>0-1\u4e4b\u95f4\u7684\u5c0f\u6570<\/td>\n<\/tr>\n<tr>\n<td>transparent<\/td>\n<td>Boolean<\/td>\n<td>false<\/td>\n<td>\u662f\u5426\u900f\u660e<\/td>\n<td>true \/ false<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209102524-6989b61458938.png\" \/><\/p>\n<h4><\/h4>\n<h3>\u4e03\u3001\u7f51\u683c\u6750\u8d28&#xff08;Grid&#xff09;<\/h3>\n<h4>7.1 \u529f\u80fd\u8bf4\u660e<\/h4>\n<p>\u7f51\u683c\u6750\u8d28\u521b\u5efa\u00a0\u5750\u6807\u7f51\u683c\u00a0\u56fe\u6848&#xff0c;\u652f\u6301\u81ea\u5b9a\u4e49\u7f51\u683c\u6570\u91cf\u3001\u7ebf\u7c97\u7ec6\u3001\u900f\u660e\u5ea6&#xff0c;\u5e38\u7528\u4e8e\u521b\u5efa\u6d4b\u91cf\u7f51\u683c\u3001\u5750\u6807\u53c2\u8003\u3001\u79d1\u5b66\u53ef\u89c6\u5316\u7b49\u573a\u666f\u3002<\/p>\n<h4>7.2 \u5b8c\u6574\u4ee3\u7801\u793a\u4f8b<\/h4>\n<p>javascript<\/p>\n<p>\/\/ 1. \u5b9a\u4e49\u7acb\u65b9\u4f53\u4f4d\u7f6e&#xff08;\u7f8e\u56fd\u72b9\u4ed6\u5dde&#xff09;<br \/>\nconst gridPos &#061; Cesium.Cartesian3.fromDegrees(-111.6585, 39.3210, 500);<\/p>\n<p>\/\/ 2. \u521b\u5efa\u7f51\u683c\u6750\u8d28<br \/>\nconst gridMaterial &#061; new Cesium.GridMaterialProperty({<br \/>\n  color: Cesium.Color.CYAN,                      \/\/ \u7f51\u683c\u7ebf\u989c\u8272<br \/>\n  cellAlpha: 0.2,                                \/\/ \u5355\u5143\u683c\u900f\u660e\u5ea6<br \/>\n  lineCount: new Cesium.Cartesian2(8, 8),        \/\/ \u7f51\u683c\u6570\u91cf<br \/>\n  lineThickness: new Cesium.Cartesian2(1.0, 1.0),\/\/ \u7ebf\u7c97\u7ec6<br \/>\n  lineOffset: new Cesium.Cartesian2(0.0, 0.0),   \/\/ \u7ebf\u504f\u79fb<br \/>\n  repeat: new Cesium.Cartesian2(1, 1),           \/\/ \u91cd\u590d\u6b21\u6570<br \/>\n  transparent: true,                             \/\/ \u662f\u5426\u900f\u660e<br \/>\n  colorToAlpha: 0.0,                             \/\/ \u989c\u8272\u8f6c\u900f\u660e\u5ea6<br \/>\n  colorToAlphaEdge: 0.0                          \/\/ \u8fb9\u7f18\u5e73\u6ed1<br \/>\n});<\/p>\n<p>\/\/ 3. \u6dfb\u52a0\u5e26\u7f51\u683c\u6750\u8d28\u7684\u7acb\u65b9\u4f53\u5b9e\u4f53<br \/>\n  viewer.entities.add({<br \/>\n  id: &#039;grid-cube-demo&#039;,<br \/>\n  position: gridPos,<br \/>\n  name: &#039;\u7f51\u683c\u6750\u8d28\u7acb\u65b9\u4f53&#039;,<\/p>\n<p>  box: {<br \/>\n    dimensions: new Cesium.Cartesian3(380000, 380000, 380000),<br \/>\n    material: gridMaterial,  \/\/ \u6838\u5fc3&#xff1a;\u7f51\u683c\u6750\u8d28<br \/>\n    outline: true,<br \/>\n    outlineColor: Cesium.Color.WHITE,<br \/>\n    outlineWidth: 2<br \/>\n  }<br \/>\n});<\/p>\n<p>\/\/ 4. \u76f8\u673a\u5b9a\u4f4d<br \/>\nviewer.camera.flyTo({<br \/>\n  destination: Cesium.Cartesian3.fromDegrees(-111.6585, 39.3210, 2200000),<br \/>\n  duration: 3<br \/>\n});<\/p>\n<h4>7.3 \u53c2\u6570\u89e3\u6790<\/h4>\n<table>\n<tr>\u53c2\u6570\u7c7b\u578b\u9ed8\u8ba4\u503c\u8bf4\u660e\u5f71\u54cd\u6548\u679c<\/tr>\n<tbody>\n<tr>\n<td>color<\/td>\n<td>Color<\/td>\n<td>\u5fc5\u987b<\/td>\n<td>\u7f51\u683c\u7ebf\u989c\u8272<\/td>\n<td>\u7ebf\u6761\u989c\u8272<\/td>\n<\/tr>\n<tr>\n<td>cellAlpha<\/td>\n<td>Number<\/td>\n<td>0.0<\/td>\n<td>\u5355\u5143\u683c\u900f\u660e\u5ea6<\/td>\n<td>\u80cc\u666f\u900f\u660e\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>lineCount<\/td>\n<td>Cartesian2<\/td>\n<td>(1,1)<\/td>\n<td>\u7f51\u683c\u6570\u91cf<\/td>\n<td>\u7f51\u683c\u5bc6\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>lineThickness<\/td>\n<td>Cartesian2<\/td>\n<td>(1.0,1.0)<\/td>\n<td>\u7ebf\u7c97\u7ec6<\/td>\n<td>\u7ebf\u6761\u7c97\u7ec6<\/td>\n<\/tr>\n<tr>\n<td>lineOffset<\/td>\n<td>Cartesian2<\/td>\n<td>(0,0)<\/td>\n<td>\u7ebf\u6761\u504f\u79fb<\/td>\n<td>\u865a\u7ebf\u6548\u679c<\/td>\n<\/tr>\n<tr>\n<td>repeat<\/td>\n<td>Cartesian2<\/td>\n<td>(1,1)<\/td>\n<td>\u91cd\u590d\u6b21\u6570<\/td>\n<td>\u56fe\u6848\u5bc6\u5ea6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209102524-6989b61477a8c.png\" \/><\/p>\n<h4 style=\"background-color:transparent\">7.4 \u7f51\u683c\u6750\u8d28\u53d8\u4f53<\/h4>\n<p>javascript<\/p>\n<p>\/\/ \u521b\u5efa\u4e0d\u540c\u98ce\u683c\u7684\u7f51\u683c\u6750\u8d28<br \/>\nconst gridVariants &#061; [<br \/>\n  {<br \/>\n    name: &#039;\u7ec6\u7f51\u683c&#039;,<br \/>\n    material: new Cesium.GridMaterialProperty({<br \/>\n      color: Cesium.Color.WHITE,<br \/>\n      cellAlpha: 0.1,<br \/>\n      lineCount: new Cesium.Cartesian2(20, 20),<br \/>\n      lineThickness: new Cesium.Cartesian2(0.5, 0.5)<br \/>\n    })<br \/>\n  },<br \/>\n  {<br \/>\n    name: &#039;\u7c97\u7f51\u683c&#039;,<br \/>\n    material: new Cesium.GridMaterialProperty({<br \/>\n      color: Cesium.Color.YELLOW,<br \/>\n      cellAlpha: 0.3,<br \/>\n      lineCount: new Cesium.Cartesian2(5, 5),<br \/>\n      lineThickness: new Cesium.Cartesian2(2.0, 2.0)<br \/>\n    })<br \/>\n  },<br \/>\n  {<br \/>\n    name: &#039;\u975e\u5bf9\u79f0\u7f51\u683c&#039;,<br \/>\n    material: new Cesium.GridMaterialProperty({<br \/>\n      color: Cesium.Color.MAGENTA,<br \/>\n      cellAlpha: 0.15,<br \/>\n      lineCount: new Cesium.Cartesian2(12, 6),  \/\/ \u6c34\u5e7312\u683c&#xff0c;\u5782\u76f46\u683c<br \/>\n      lineThickness: new Cesium.Cartesian2(1.0, 3.0)  \/\/ \u5782\u76f4\u7ebf\u7c97<br \/>\n    })<br \/>\n  },<br \/>\n  {<br \/>\n    name: &#039;\u865a\u7ebf\u7f51\u683c&#039;,<br \/>\n    material: new Cesium.GridMaterialProperty({<br \/>\n      color: Cesium.Color.GREEN,<br \/>\n      cellAlpha: 0.25,<br \/>\n      lineCount: new Cesium.Cartesian2(8, 8),<br \/>\n      lineThickness: new Cesium.Cartesian2(1.0, 1.0),<br \/>\n      lineOffset: new Cesium.Cartesian2(0.0, 0.5)  \/\/ \u5782\u76f4\u7ebf\u504f\u79fb50%<br \/>\n    })<br \/>\n  }<br \/>\n];<\/p>\n<p>\/\/ \u5c55\u793a\u7f51\u683c\u53d8\u4f53<br \/>\ngridVariants.forEach((variant, index) &#061;&gt; {<br \/>\n  const longitude &#061; -111.6585 &#043; (index &#8211; 1.5) * 0.7;<\/p>\n<p>  viewer.entities.add({<br \/>\n    position: Cesium.Cartesian3.fromDegrees(longitude, 39.3210, 500),<br \/>\n    name: &#096;\u7f51\u683c\u53d8\u4f53-${variant.name}&#096;,<br \/>\n    box: {<br \/>\n      dimensions: new Cesium.Cartesian3(150000, 150000, 150000),<br \/>\n      material: variant.material,<br \/>\n      outline: true,<br \/>\n      outlineColor: Cesium.Color.BLACK<br \/>\n    }<br \/>\n  });<br \/>\n});<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209102524-6989b6149cdab.png\" \/><\/p>\n<hr \/>\n<h3 style=\"background-color:transparent\">\u516b\u3001\u5b66\u4e60\u5efa\u8bae<\/h3>\n<li>\n<p>\u521d\u5b66\u5165\u95e8&#xff1a;\u4ece\u00a0\u989c\u8272\u6750\u8d28\u00a0\u5f00\u59cb&#xff0c;\u6700\u7b80\u5355\u76f4\u63a5<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u9645\u9879\u76ee&#xff1a;\u56fe\u50cf\u6750\u8d28\u00a0\u6700\u5e38\u7528&#xff0c;\u6548\u679c\u6700\u4e30\u5bcc<\/p>\n<\/li>\n<li>\n<p>\u7279\u6b8a\u6548\u679c&#xff1a;\u6839\u636e\u9700\u6c42\u9009\u62e9\u00a0\u68cb\u76d8\u683c\u3001\u6761\u7eb9\u3001\u7f51\u683c<\/p>\n<\/li>\n<li>\n<p>\u6027\u80fd\u4f18\u5148&#xff1a;\u907f\u514d\u8fc7\u5ea6\u4f7f\u7528\u56fe\u50cf\u6750\u8d28&#xff0c;\u5408\u7406\u4f7f\u7528\u7b80\u5355\u6750\u8d28<\/p>\n<\/li>\n<h4><\/h4>\n<hr \/>\n<h3 style=\"background-color:transparent\"><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u524d\u8a001.1 \u672c\u6559\u7a0b\u76ee\u6807\u672c\u6559\u7a0b\u65e8\u5728\u5e2e\u52a9\u638c\u63e1\u00a0Vue3  Cesium\u00a0\u5b9e\u4f53\u6750\u8d28\u7cfb\u7edf\u6838\u5fc3\u7528\u6cd5&#xff0c;\u6db5\u76d6\u4e94\u79cd\u6838\u5fc3\u6750\u8d28\u7c7b\u578b&#xff1a;\u989c\u8272\u3001\u56fe\u50cf\u3001\u68cb\u76d8\u683c\u3001\u6761\u7eb9\u3001\u7f51\u683c\u6750\u8d28\u3002\u6bcf\u79cd\u6750\u8d28\u90fd\u914d\u6709\u8be6\u7ec6\u53c2\u6570\u89e3\u6790\u548c\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b&#xff0c;\u5feb\u901f\u4e0a\u624b\u4e3a\u4e09\u7ef4\u5b9e\u4f53\u6dfb\u52a0\u4e30\u5bcc\u7684\u89c6\u89c9\u6548\u679c\u30021.2 \u57fa\u7840\u77e5\u8bc6\u8981\u6c42Vue3\u57fa\u7840&#xff1a;\u4e86\u89e3\u7ec4\u5408\u5f0fAPI\u3001\u7ec4\u4ef6\u751f\u547d\u5468\u671fCesium\u57fa\u7840&#xff1a;\u719f\u6089\u5b9e\u4f53\u521b\u5efa\u3001\u5750\u6807\u7cfb\u7edfJavaScript\u57fa\u7840&#xff1a;ES6\u8bed\u6cd5\u3001\u5f02\u6b65\u7f16\u7a0b\u4e8c\u3001\u9879\u76ee\u57fa\u7840\u51c6<\/p>\n","protected":false},"author":2,"featured_media":74387,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[187,625,87],"topic":[],"class_list":["post-74393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-javascript","tag-vue-js","tag-87"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Vue3 + Cesium \u4e09\u7ef4\u5b9e\u4f53\u6750\u8d28\u5f00\u53d1\u5165\u95e8\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/74393.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Vue3 + Cesium \u4e09\u7ef4\u5b9e\u4f53\u6750\u8d28\u5f00\u53d1\u5165\u95e8\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u524d\u8a001.1 \u672c\u6559\u7a0b\u76ee\u6807\u672c\u6559\u7a0b\u65e8\u5728\u5e2e\u52a9\u638c\u63e1\u00a0Vue3 Cesium\u00a0\u5b9e\u4f53\u6750\u8d28\u7cfb\u7edf\u6838\u5fc3\u7528\u6cd5&#xff0c;\u6db5\u76d6\u4e94\u79cd\u6838\u5fc3\u6750\u8d28\u7c7b\u578b&#xff1a;\u989c\u8272\u3001\u56fe\u50cf\u3001\u68cb\u76d8\u683c\u3001\u6761\u7eb9\u3001\u7f51\u683c\u6750\u8d28\u3002\u6bcf\u79cd\u6750\u8d28\u90fd\u914d\u6709\u8be6\u7ec6\u53c2\u6570\u89e3\u6790\u548c\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b&#xff0c;\u5feb\u901f\u4e0a\u624b\u4e3a\u4e09\u7ef4\u5b9e\u4f53\u6dfb\u52a0\u4e30\u5bcc\u7684\u89c6\u89c9\u6548\u679c\u30021.2 \u57fa\u7840\u77e5\u8bc6\u8981\u6c42Vue3\u57fa\u7840&#xff1a;\u4e86\u89e3\u7ec4\u5408\u5f0fAPI\u3001\u7ec4\u4ef6\u751f\u547d\u5468\u671fCesium\u57fa\u7840&#xff1a;\u719f\u6089\u5b9e\u4f53\u521b\u5efa\u3001\u5750\u6807\u7cfb\u7edfJavaScript\u57fa\u7840&#xff1a;ES6\u8bed\u6cd5\u3001\u5f02\u6b65\u7f16\u7a0b\u4e8c\u3001\u9879\u76ee\u57fa\u7840\u51c6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/74393.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-09T10:25:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209102523-6989b613b771c.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/74393.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/74393.html\",\"name\":\"Vue3 + Cesium \u4e09\u7ef4\u5b9e\u4f53\u6750\u8d28\u5f00\u53d1\u5165\u95e8\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-09T10:25:25+00:00\",\"dateModified\":\"2026-02-09T10:25:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/74393.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/74393.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/74393.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vue3 + Cesium \u4e09\u7ef4\u5b9e\u4f53\u6750\u8d28\u5f00\u53d1\u5165\u95e8\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Vue3 + Cesium \u4e09\u7ef4\u5b9e\u4f53\u6750\u8d28\u5f00\u53d1\u5165\u95e8\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/74393.html","og_locale":"zh_CN","og_type":"article","og_title":"Vue3 + Cesium \u4e09\u7ef4\u5b9e\u4f53\u6750\u8d28\u5f00\u53d1\u5165\u95e8\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u524d\u8a001.1 \u672c\u6559\u7a0b\u76ee\u6807\u672c\u6559\u7a0b\u65e8\u5728\u5e2e\u52a9\u638c\u63e1\u00a0Vue3 Cesium\u00a0\u5b9e\u4f53\u6750\u8d28\u7cfb\u7edf\u6838\u5fc3\u7528\u6cd5&#xff0c;\u6db5\u76d6\u4e94\u79cd\u6838\u5fc3\u6750\u8d28\u7c7b\u578b&#xff1a;\u989c\u8272\u3001\u56fe\u50cf\u3001\u68cb\u76d8\u683c\u3001\u6761\u7eb9\u3001\u7f51\u683c\u6750\u8d28\u3002\u6bcf\u79cd\u6750\u8d28\u90fd\u914d\u6709\u8be6\u7ec6\u53c2\u6570\u89e3\u6790\u548c\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b&#xff0c;\u5feb\u901f\u4e0a\u624b\u4e3a\u4e09\u7ef4\u5b9e\u4f53\u6dfb\u52a0\u4e30\u5bcc\u7684\u89c6\u89c9\u6548\u679c\u30021.2 \u57fa\u7840\u77e5\u8bc6\u8981\u6c42Vue3\u57fa\u7840&#xff1a;\u4e86\u89e3\u7ec4\u5408\u5f0fAPI\u3001\u7ec4\u4ef6\u751f\u547d\u5468\u671fCesium\u57fa\u7840&#xff1a;\u719f\u6089\u5b9e\u4f53\u521b\u5efa\u3001\u5750\u6807\u7cfb\u7edfJavaScript\u57fa\u7840&#xff1a;ES6\u8bed\u6cd5\u3001\u5f02\u6b65\u7f16\u7a0b\u4e8c\u3001\u9879\u76ee\u57fa\u7840\u51c6","og_url":"https:\/\/www.wsisp.com\/helps\/74393.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-09T10:25:25+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209102523-6989b613b771c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/74393.html","url":"https:\/\/www.wsisp.com\/helps\/74393.html","name":"Vue3 + Cesium \u4e09\u7ef4\u5b9e\u4f53\u6750\u8d28\u5f00\u53d1\u5165\u95e8\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-09T10:25:25+00:00","dateModified":"2026-02-09T10:25:25+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/74393.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/74393.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/74393.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Vue3 + Cesium \u4e09\u7ef4\u5b9e\u4f53\u6750\u8d28\u5f00\u53d1\u5165\u95e8\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/74393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=74393"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/74393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/74387"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=74393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=74393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=74393"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=74393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}