cesium 加载arcgis server pbf

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,
      }
    });

效果图

cesium 加载arcgis server pbf_第1张图片

你可能感兴趣的:(cesium,arcgis,前端,javascript)