1.2.4 • Published 4 years ago

yardmapper v1.2.4

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

yardmapper

Yardmapper is a react module that allows users to map lawn area polygons or enter lawn size manually. uses google maps api, react-google-maps, material-ui with a lottie as an instructional dialog.

How to use

You can install this directly in your project with npm npm i yardmapper

Repo

This project can also be found / forked on github

Props

Yardmapper component props

PROPREQTYPEDESCRIPTION
centeryesObject{lat: number, lng: number} - Map initial center geo point
isMetricnobooleanTo use metric units - default false
maxSizeyesnumberin square feet, unless isMetric is true
googleMapsApiKeyyesstringGoogle Maps API key
onCompleteyesfunctioncallback function called upon successful completion of mapping process. Will be called with onCompleteEvent object (see below)

onCompleteEvent

Upon successful completion of yard mapping process the onComplete function will be called with the resulting object:

{
	isMetric: boolean,
	size: number,
	polygons: Array<features>,
	manuallyEntered: boolean
}

Note: it is possible that the user will draw polygons and then manually enter their yard size, in this case the polygons drawn will still be included in the event and the manuallyEntered value will be true.

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.11

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago