Skip to content

Commit b5daccb

Browse files
author
Savina Shen (Manpower Services Taiwan Co Ltd)
committed
modify html marker example
1 parent 14effd5 commit b5daccb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/stories/MapAnnotations/HtmlMarker/HtmlMarker.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const meta: Meta<typeof HtmlMarker> = {
88
color: 'DodgerBlue',
99
text: '10',
1010
position: [0, 0],
11+
draggable: false,
1112
},
1213
parameters: {
1314
storySource: {

src/stories/MapAnnotations/HtmlMarker/HtmlMarker.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@ import { AzureMap, AzureMapHtmlMarker, AzureMapsProvider } from 'react-azure-map
22
import { HtmlMarkerOptions, SymbolLayerOptions } from 'azure-maps-control';
33
import { mapOptions } from '../../../key';
44

5-
const HtmlMarker = ({ color, text, position }: HtmlMarkerOptions) => {
5+
const HtmlMarker = ({ color, text, position, draggable }: HtmlMarkerOptions) => {
66
return (
77
<AzureMapsProvider>
88
<div className="defaultMap sb-unstyled">
99
<AzureMap options={mapOptions}>
1010
<AzureMapHtmlMarker
11-
// key={rendId}
1211
options={{
1312
color,
1413
text,
1514
position,
15+
draggable,
1616
}}
17-
// markerContent={<div>My HTML content</div>} // need further implementation
1817
/>
1918
</AzureMap>
2019
</div>

0 commit comments

Comments
 (0)