Skip to content

Commit c6e9d9d

Browse files
author
Savina Shen (Manpower Services Taiwan Co Ltd)
committed
delete unnecessary file
1 parent 8f13b42 commit c6e9d9d

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

src/stories/DefaultMap/DefaultMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AzureMap, AzureMapsProvider, IAzureMapOptions, IAzureMapControls, AuthenticationType } from 'react-azure-maps';
1+
import { AzureMap, AzureMapsProvider, IAzureMapOptions, IAzureMapControls } from 'react-azure-maps';
22
import { mapOptions } from '../../key';
33

44
export interface DefaultMapProps {

src/stories/DefaultMap/GettingStarted.mdx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Meta, Source } from '@storybook/addon-docs/blocks';
22

33
import DefaultMap from './DefaultMap';
44

5-
import { code } from './code';
65

76
<Meta title="Getting Started" />
87

@@ -42,7 +41,24 @@ Let's create a simple map with the default style.
4241

4342
{/* show default map */}
4443
<DefaultMap/>
45-
<Source code={code} />
44+
<Source code={`
45+
import { AzureMap, AzureMapsProvider, IAzureMapOptions, AuthenticationType } from 'react-azure-maps';
46+
47+
const option: IAzureMapOptions = {
48+
authOptions: {
49+
authType: AuthenticationType.subscriptionKey,
50+
subscriptionKey: Your_Subscription_Key,
51+
},
52+
};
53+
54+
const DefaultMap = () => (
55+
<AzureMapsProvider>
56+
<div>
57+
<AzureMap options={option} />
58+
</div>
59+
</AzureMapsProvider>
60+
);
61+
`} />
4662

4763
## Authentication
4864

src/stories/DefaultMap/code.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)