Skip to content

How to use local (from assets folder) sprites and glyphs #338

Open
@venomwine

Description

@venomwine

Good library!

When I use maplibre android, I can use local (from assets folder) sprites and glyphs.
The keywords of style.json are just like this.

"sprite": "asset://sprites/sprite",
"glyphs": "asset://glyphs/{fontstack}/{range}.pbf",

and all files are under assets folder.
image

But with this flutter-maplibre-gl, That way is not working.
I try to copy those files to under flutter assets folder and android assets folder. Both way couldn't load asset.
image

Is there any way to use local sprites and glyphs ??

Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions