Skip to content

Commit

Permalink
support custom react overlays for Geo map
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Nov 10, 2021
1 parent ef2be89 commit 00d494e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/map/src/inputs/Geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default function Geo({
required,
label,
hint,
inset = true
inset = true,
children
}) {
const {
Fieldset: DefaultFieldset,
Expand Down Expand Up @@ -46,6 +47,7 @@ export default function Geo({
<Fieldset label={label}>
<GeoTools name={name} type={type} />
<AutoMap name={name} containerStyle={{ minHeight: 400 }}>
{children}
<Accuracy accuracy={accuracy} data={geojson} />
<Draw
name={name}
Expand All @@ -66,5 +68,6 @@ Geo.propTypes = {
required: PropTypes.boolean,
label: PropTypes.string,
hint: PropTypes.string,
inset: PropTypes.boolean
inset: PropTypes.boolean,
children: PropTypes.node
};

0 comments on commit 00d494e

Please sign in to comment.