import TrafimageMapboxLayer from "../../layers/TrafimageMapboxLayer";
import TarifverbundkarteLayer from "../../layers/TarifverbundkarteLayer";

// eslint-disable-next-line import/prefer-default-export
export const getTarifverbundkarteLayers = () => {
  const tarifverbundkarteDataLayer = new TrafimageMapboxLayer({
    name: "ch.sbb.tarifverbundkarte.data",
    visible: true,
    zIndex: -1,
    // Add zIndex as the MapboxLayer would block tiled layers (buslines)
    style: "ch.sbb.tarifverbund",
    properties: {
      hideInLegend: true,
      isBaseLayer: true
    },
    mapOptions: {
      preserveDrawingBuffer: true
    }
  });
  const tarifverbundkarteLayer = new TarifverbundkarteLayer({
    mapboxLayer: tarifverbundkarteDataLayer,
    visible: true,
    properties: {
      isQueryable: true,
      hideInLegend: true,
      useOverlay: true,
      popupComponent: "TarifverbundkartePopup"
    }
  });
  return [tarifverbundkarteDataLayer, tarifverbundkarteLayer];
};
//# sourceMappingURL=index.js.map