Skip to content

Commit

Permalink
unknown size throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew44-mappable committed Apr 25, 2024
1 parent 1a6e863 commit 1a27988
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/markers/MMapDefaultMarker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ export class MMapDefaultMarker extends mappable.MMapComplexEntity<MMapDefaultMar
this._background = micro.background;
this._icon = micro.icon;
break;
default:
throw new Error(
'Unknown size has been specified. The following sizes are available: normal, small and micro.'
);
}

this._markerElement.appendChild(this._background);
Expand Down

0 comments on commit 1a27988

Please sign in to comment.