FishSET-Map-Viewer

author: Corinne Bassin, NOAA National Modeling Team

developed as part of the Spatial Economics Toolbox for Fisheries

Development Documentation

Simple Description

Using the Map

Set Up

Data Files

Two generated data files are expected and one configuration file

Configuration File

The configurations file, map_config.js is a JSON of variables and filesnames necessary for the map to run. Currently you can either plot single point fishing data OR linear fishing data.

Example Config
        
        {
            "mapbox_token":"fakeTokenID",
            "choosen_scatter":  "HAUL_FISHNAME1",
            "numeric_vars" :["HAUL_FISHNAME1","HAUL_FISHNAME2","HAUL_LBS_OTHER_LBS"],
            "temporal_vars":["DATE_FISHING_BEGAN","DATE_LANDED"],
            "id_vars": ["GEAR_TYPE","PERFORMANCE"],
            "longitude_start":"START_LON",
            "latitude_start":"START_LAT",
            "longitude_end":"END_LON",
            "latitude_end":"END_LAT",
            "uniqueID":"uniqueID",
            "multi_grid":[
                {"mapfile":"nmfs_manage_simple.geojson",
                  "area_variable_map":"NMFS_AREA",
                 "area_variable_column":"NMFS_AREA"}
                    ]
            }
        
        

Turning on a localhost

You will need to create a localhost to serve the Javascript files. This can be accomplised a number of ways. Here are two ways depending on if you have R or python on your computer