5.0.23 • Published 4 months ago

@ugrc/dart-board v5.0.23

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@ugrc/dart-board

NPM version

This is a react component for geocoding addresses and route/mileposts using UGRC's API.

Install with npm

npm install @ugrc/dart-board

Component properties

{
  apiKey: PropTypes.string.isRequired,
  type: PropTypes.oneOf(['single-address', 'route-milepost']),
  pointSymbol: PropTypes.object,
  events: PropTypes.exact({
    success: PropTypes.func.isRequired,
    error: PropTypes.func.isRequired
  }),
  wkid: PropTypes.number,
  address: PropTypes.shape({
    acceptScore: PropTypes.number,
    suggest: PropTypes.number,
    locators: PropTypes.oneOf([null, 'all', 'addressPoints', 'roadCenterlines']),
    poBox: PropTypes.bool,
    scoreDifference: PropTypes.bool
  }),
  milepost: PropTypes.shape({
    side: PropTypes.oneOf([null, 'increasing', 'decreasing']),
    fullRoute: PropTypes.bool
  }),
  format: PropTypes.oneOf([null, 'esrijson', 'geojson']),
  callback: PropTypes.string
};

Defaults

{
  type: 'single-address',
  address: {
    acceptScore: 70,
    suggest: 0,
    locators: 'all',
    poBox: false,
    scoreDifference: false
  },
  milepost: {
    side: 'increasing',
    fullRoute: false
  },
  wkid: 3857,
  callback: null,
  format: null,
  pointSymbol: {
    style: 'diamond',
    color: [255, 0, 0, 0.5]
  },
  events: {
    success: console.log,
    error: console.error
  }
};
5.0.21

5 months ago

5.0.22

4 months ago

5.0.23

4 months ago

5.0.20

6 months ago

5.0.19

7 months ago

5.0.17

7 months ago

5.0.18

7 months ago

5.0.15

7 months ago

5.0.16

7 months ago

5.0.14

8 months ago

5.0.13

9 months ago

5.0.12

10 months ago

5.0.11

11 months ago

5.0.10

11 months ago

5.0.9

1 year ago

5.0.8

1 year ago

5.0.6

2 years ago

5.0.7

2 years ago

5.0.5

3 years ago

5.0.4

3 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.0.4

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago