Platform
Resources
Pricing
Sign in
Contact us
Neil Turley
Workspace
Fork
Public
By
Neil Turley
Edited
May 13, 2024
2
Insert cell
Insert cell
mapTiles
=
FileAttachment
(
"map.json"
)
.
json
(
)
Insert cell
sprites
=
FileAttachment
(
"spritesheet.png"
)
.
url
(
)
Insert cell
{
return
html
`<svg width="16" height="16" viewbox="0 29 16 16" > <image href=${
sprites
} width=${
mapTiles
.
mapWidth
*
8
} height=${
mapTiles
.
mapHeight
*
8
} x=${
0
} y=${
0
} /> </svg>`
}
Insert cell
{
return
html
`<svg></svg>`
}
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
mapTiles
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sprites
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML