2.2.0 • Published 2 years ago

niwa-citizen-science-lib v2.2.0

Weekly downloads
90
License
http://creativeco...
Repository
-
Last release
2 years ago

NIWA Citizen Science Library

This project is to use and view data from the NIWA Citizen Science project.

It is intended mostly of in house use but 3rd parties are allowed to view data and this library whousl help them.

Usage

npm install niwa-citizen-science-lib

Import the module where you need it

import { NiwaCitizenScienceLibModule } from 'niwa-citizen-science-lib';

Configure the base URL for the library

const citizenScienceConfig: CitizenScienceConfig = {
    baseUrl: 'https://citizenscience.niwa.co.nz'
};

Import it into your module

@NgModule({
    declarations: [AppComponent],
    imports: [
        NiwaCitizenScienceLibModule.forRoot(citizenScienceConfig),
        ...

Options

surveyId: The id of the survey (not the response) that the responses are for

surveyResponseId: The id of the response to display

maxQuestions (optional): The maximum number of questions to display results for, all others are hidden

questionFilter (optional): Comma separated array of questions to display, all others are hidden

Example

<app-survey-response 
                     [surveyId]='1'
                     [surveyResponseId]='100'
                     [questionFilter]="['Stream name', 'Upstream photo', 'Structure type' ]"></app-survey-response>
2.2.0

2 years ago

2.1.0

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.23

5 years ago

1.1.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

6 years ago