Skip to content

Commit

Permalink
Fix the canvas-source example (#3375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caerbannog authored Nov 16, 2023
1 parent 02df4a5 commit da1777a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export type MapOptions = {
*/
attributionControl?: boolean;
/**
* Attribuition text to show in an {@link AttributionControl}. Only applicable if `options.attributionControl` is `true`.
* Attribution text to show in an {@link AttributionControl}. Only applicable if `options.attributionControl` is `true`.
*/
customAttribution?: string | Array<string>;
/**
Expand Down
3 changes: 2 additions & 1 deletion test/examples/canvas-source.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
//Animation from https://javascript.tutorials24x7.com/blog/how-to-draw-animated-circles-in-html5-canvas
const canvas = document.getElementById('canvasID');
const ctx = canvas.getContext('2d');
canvas.style.display = 'none';
const circles = [];
const radius = 20;

Expand Down Expand Up @@ -106,4 +107,4 @@
});
</script>
</body>
</html>
</html>

0 comments on commit da1777a

Please sign in to comment.