export default {
  "version": 8,
  "sources": {
    "{{resId}}": {
      "type": "vector",
      "tiles": ["{{tiles}}"]
    }
  },
  "layers": [
    {
      "id": "{{resId}}_point",
      "type": "circle",
      "filter": ["==", "$type", "Point"],
      "source": "{{resId}}",
      "source-layer": "{{resId}}",
      "paint": {
        "circle-radius": 10,
        "circle-color": "#ff0000"
      }
    },
    {
      "id": "{{resId}}_point_highlight",
      "type": "circle",
      "source": "{{resId}}",
      "source-layer": "{{resId}}",
      "filter": ["all", ["==", "$type", "Point"], ["==", "ogc_fid", -1]],
      "paint": {
        "circle-radius":10,
        "circle-color": "#0000ff"
      }
    },
    {
      "id": "{{resId}}_polygon",
      "type": "fill",
      "source": "{{resId}}",
      "filter": ["==", "$type", "Polygon"],
      "source-layer": "{{resId}}",
      "paint": {
        "fill-color": "#ff0000",
        "fill-opacity":0.4
      }
    },
    {
      "id": "{{resId}}_polygon_highlight",
      "type": "fill",
      "source": "{{resId}}",
      "source-layer": "{{resId}}",
      "filter": ["all", ["==", "$type", "Polygon"], ["==", "ogc_fid", -1]],
      "paint": {
        "fill-color":"#0000ff",
        "fill-opacity": 0.4
      }
    },
    {
      "id": "{{resId}}_line",
      "type": "line",
      "source": "{{resId}}",
      "source-layer":"{{resId}}",
      "filter": ["==", "$type", "LineString"],
      "paint": {
        "line-color": "#ff0000"
      }
    },
    {
      "id": "{{resId}}_line_highlight",
      "type": "line",
      "source": "{{resId}}",
      "source-layer": "{{resId}}",
      "filter": ["all", ["==", "$type", "LineString"], ["==", "ogc_fid", -1]],
      "paint": {
        "line-color": "#0000ff"
      }
    }
  ]
}