diff --git a/guides/7.DEVELOPMENT.md b/guides/7.DEVELOPMENT.md index 3b685a3..18f7af1 100644 --- a/guides/7.DEVELOPMENT.md +++ b/guides/7.DEVELOPMENT.md @@ -120,6 +120,8 @@ public render( ): void; ``` +You can see a very basic example adapter in the `terra-draw.extensions.spec.ts` file. It shows how you can create your own adapter from the publicly exposed library imports. + ## Mode Anatomy Modes are not just limited to drawing features, for example the built-in `TerraDrawSelectMode` allows for selection and editing of geometries that have previously been drawn. The `TerraDrawRenderMode` is a "view only" Mode useful for showing non-editable data alongside editable data in your application. @@ -163,6 +165,8 @@ onDragEnd(event: TerraDrawMouseEvent) {} styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling {} ``` +You can see a very basic example mode in the `terra-draw.extensions.spec.ts` file. It shows how you can create your own mode from the publicly exposed library imports. + ## Precommit Hooks It is probably useful to be aware of the precommit hooks you will face when trying to run a git commit on the project. There are two currently in use, namely: diff --git a/src/terra-draw.extensions.spec.ts b/src/terra-draw.extensions.spec.ts index 081ccbb..ac9d1f1 100644 --- a/src/terra-draw.extensions.spec.ts +++ b/src/terra-draw.extensions.spec.ts @@ -7,7 +7,6 @@ * of the library. */ -import { exp } from "protomaps-leaflet"; import { CustomStyling } from "./modes/base.mode"; import { GeoJSONStoreFeatures,