Skip to content

dataLayerCameras

Technical Details

This layer is specifically for cameras.

Configuration

The following parameters may be specified in the configuration file when defining a dataLayerGeojsonPolygon layer.

Parameter Example Value Default Description
id "cameraLayer" required Unique layer identifier. Used only for programming puposes and will not be seen by the user but MUST be unique.
class "data-layer-cameras" required This specifies the class to use to display a data layer.
label "Cameras" required Label on menu checkbox.
refresh false false Layers that have this set to true will be updated every 5 minutes, or whatever the system-wide refresh interval is set to.
url "map/overlay-layers/cameras.geojson" required Filename of camera data file.

The camera file itself must have the following format:

{
    "type": "FeatureCollection",
    "features": [
      {
        "type": "Feature",
        "properties": {
            "data_source": "WETMap",
            "name": "WET Office",
            "link": "http://www.wunderground.com/webcams/WETInc/2/show.html",
            "image": "http://cameraftpapi.drivehq.com/api/Camera/GetCameraThumbnail.ashx?parentID=237442473&shareID=13862329",
            "image_height": 360,
            "image_width": 640
        },
        "geometry": {
          "type": "Point",
          "coordinates": [-105.07477, 40.603510]
        }
      },
      {
        "type": "Feature",
        "properties": {
            "data_source": "WETMap",
            "name": "Snowy Range Ski Area",
            "link": "http://www.snowyrangeski.com/sample-page/webcams",
            "image": "https://www.cameraftp.com/Camera/CameraPlayer.aspx?parentID=224864296&shareID=13751043",
            "image_height": 480,
            "image_width": 640
        },
        "geometry": {
          "type": "Point",
          "coordinates": [-106.183542, 41.341170]
        }
      }
    ]
}