cesium 加载arcgis server pbf

发布时间:2024年01月15日

cesium 加载arcgis server pbf

部分代码

    import MapboxVectorTileImageryProvider from './pbfLayers/MapboxVectorTileImageryProvider.js';
    var mapbox = new MapboxVectorTileImageryProvider({
      layerName:'Arcgis_pbf',
      url: 'https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf',
      styleUrl: 'https://cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json'
    var viewer = new Cesium.Viewer("cesiumContainer", {
      imageryProvider: mapbox,
      sceneMode: Cesium.SceneMode.SCENE3D,
      scene3DOnly: true,
      infoBox: false,
      shouldAnimate: true,
      vrButton: true,
      geocoder: false,
      homeButton: false,
      sceneModePicker: false,
      baseLayerPicker: true,
      navigationHelpButton: false,
      animation: false,
      timeline: false,
      fullscreenButton: false,
      contextOptions: {
        requestWebgl1: true,
      }
    });

效果图

在这里插入图片描述

文章来源:https://blog.csdn.net/weixin_42172974/article/details/135522472
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。