diff --git a/src/examples/DrawingTools.tsx b/src/examples/DrawingTools.tsx new file mode 100644 index 0000000..f47ae88 --- /dev/null +++ b/src/examples/DrawingTools.tsx @@ -0,0 +1,59 @@ +import React from "react"; + +import { AzureMap, AzureMapsProvider, AzureMapDrawingManagerProvider, AzureMapFeature, AzureMapDrawingLayerProvider, IAzureMapOptions } from 'react-azure-maps'; +import { AuthenticationType } from 'azure-maps-control'; +import { key } from "../key"; +import { wrapperStyles } from "./RouteExample"; + +const styles = { + map: { + height: 600, + marginBottom: 50, + }, +}; + +const option: IAzureMapOptions = { + center: [-122.33, 47.6], + zoom: 12, + authOptions: { + authType: AuthenticationType.subscriptionKey, + subscriptionKey: key, + }, +}; + +const drawingOptions = { + toolbar: { + position: 'top-right', + style: 'dark', + } +}; + +const DrawingTools: React.FC = () => ( +