I'm unable to draw an ArcGIS FeatureServer .pbf result in OpenLayers 6.4.3. The request completes successfully but nothing appears. The layer in question is the NFIS Fire Perimeter Layer. https://services3.arcgis.com/T4QMspbfLg3qTGWY/arcgis/rest/services/Public_Wildfire_Perimeters_View/FeatureServer/0

My code looks like this...

    let url = "https://services3.arcgis.com/T4QMspbfLg3qTGWY/arcgis/rest/services/Public_Wildfire_Perimeters_View/FeatureServer/0"
    let extent = this.props.extent;
    let urlFormatted =
      url +
      `/query?f=pbf&returnGeometry=true&spatialRel=esriSpatialRelIntersects&` +
      },"spatialReference":{"wkid":102100}}&` +

    this.vectorSource = new VectorTileSource({
      format: new MVT(),
      url: urlFormatted

     * The layer hosting the source vector.

    this.vectorLayer = new VectorTileLayer({
      id: this.props.id,
      visible: true,
      source: this.vectorSource,
      zIndex: 200

  • 1
    VectorTile sources/layers require a tile grid, so you would need to set a single tile, single zoom level grid for your extent. It might be better to read the data into a standard vector layer. To do that Feature class must be specified as Feature (not the default RenderFeature) and readFeatures requires the tile extent as an option. For example codesandbox.io/s/vigorous-bell-6skr7?file=/main.js
    – Mike
    Sep 15, 2020 at 9:46
  • Hi @Dylan, did you ever resolve your issue? If so, could you share the solution. I'm in the same boat and haven't seen an example demonstrating this whereby xmin, ymin, xmax and ymax are used for tiles instead of {z}/{x}/{y}.
    – Kevin
    Jun 20, 2021 at 14:19


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.