Open james-rae opened 2 years ago
My hunch is the flag would not draw because the original definition was treated as an image, but was actually encoded SVG tags.
To recreate the scenario, edit src/fixtures/northarrow/flag.json
to have this value instead.
{
"style": "icon",
"width": 16.5,
"height": 16.5,
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnIGlkPSJmbGFnIj4KICAgIDxwYXRoIGQ9Ik0xNC40IDZMMTQgNEg1djE3aDJ2LTdoNS42bC40IDJoN1Y2eiIgZmlsbD0iI2YwMCIgc3Ryb2tlPSIjMDAwIj48L3BhdGg+CiAgPC9nPgo8L3N2Zz4K",
"xOffset": 7,
"yOffset": 7
}
Open in Firefox. Go to Lambert basemap. Pan north. No flag sprite.
Happens in pre-Vite version as well.
No obvious console errors...css issue maybe?