Skip to content

Commit

Permalink
seperated out lat-long and geojson import options
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahul committed Nov 15, 2023
1 parent 924d6f8 commit a2951f2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/naksha-gmaps-draw/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface NakshaGmapsDrawProps {
isControlled?: boolean;
isReadOnly?: boolean;
isImport?: boolean;
geojsonImport?: boolean;
isMultiple?: boolean;
isAutocomplete?: boolean;
gmapRegion?;
Expand All @@ -53,6 +54,7 @@ const NakshaGmapsDraw = React.forwardRef(
isReadOnly,
isMultiple,
isImport,
geojsonImport,
isAutocomplete,
gmapRegion,
autoCompleteRegion,
Expand Down Expand Up @@ -169,17 +171,19 @@ const NakshaGmapsDraw = React.forwardRef(
<NakshaImport
InputComponent={importInputComponent || <input />}
ButtonComponent={
importButtonComponent || <button children="import" />
importButtonComponent || (
<button children="import cordinates" />
)
}
addFeature={addFeature}
/>
)}

{isImport && (
{geojsonImport && (
<GeojsonImport
InputComponent={importInputComponent || <input />}
ButtonComponent={
importButtonComponent || <button children="import" />
importButtonComponent || <button children="import geojson" />
}
addFeature={addFeature}
/>
Expand Down

0 comments on commit a2951f2

Please sign in to comment.