Skip to content

Commit

Permalink
Fix default values of selected/selectedGlyphImage (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolapps authored Oct 1, 2023
1 parent 926d06b commit ea8cc81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Annotation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Annotation({
anchorOffsetX = 0,
anchorOffsetY = 0,

selected = undefined,
selected = false,

onSelect = undefined,
onDeselect = undefined,
Expand Down
4 changes: 2 additions & 2 deletions src/components/Marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Marker({

glyphText = '',
glyphImage = null,
selectedGlyphImage = undefined,
selectedGlyphImage = null,

paddingTop = 0,
paddingRight = 0,
Expand All @@ -28,7 +28,7 @@ export default function Marker({
anchorOffsetX = 0,
anchorOffsetY = 0,

selected = undefined,
selected = false,
animates = true,
appearanceAnimation = '',
visible = true,
Expand Down
2 changes: 1 addition & 1 deletion src/components/MarkerProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default interface MarkerProps {
* The image to display in the balloon when the user selects the marker.
* @see {@link https://developer.apple.com/documentation/mapkitjs/markerannotation/2973991-selectedglyphimage}
*/
selectedGlyphImage?: object | undefined;
selectedGlyphImage?: object | null;

/**
* The amount of padding, in CSS pixels, to inset the map from the top edge.
Expand Down

0 comments on commit ea8cc81

Please sign in to comment.