can't use tm2z files?
Opened this issue · 3 comments
From @heaversm, mojodna/tessera#26
Hi - in mapbox studio, I seem to only have the option of exporting a tm2z package (which I assume is just a compressed folder), though most documentation I've read around using tessera revolves around a tm2 file (or mbtiles). When I attempt to use this in tessera:
tessera tmstyle:///vagrant/mblight.tm2z
I get the following:
Listening at http://0.0.0.0:8080/
/usr/local/lib/node_modules/tessera/server.js:43
throw err;
^
Error: ENOTDIR, open '/vagrant/mblight.tm2z/project.yml'
Is this an issue with the file format, or am I doing something else wrong. Note that I'm trying to use tessera in conjunction with this
which I found via this article
Right tm2z
packages don't work at the moment. It probably wouldn't be too hard to add support (because they are just compressed copies of the project.tm2
folder).
However, if you're the one producing the tm2z
package, that means that you also have the original folder. Rather than pointing at the tm2z
, point to the full path of the folder (which contains project.yml
) and things should work.
thanks,
how can i convert tm2 to tm2z ?
I think it's a matter of compressing it with tar
and gzip
, but I don't know the specifics. If you're using Mapbox Studio Classic, you can export it as a tm2z (it keeps the project as tm2) and run file
against it to see what kind of archive it us.
(Sorry, I don't have any projects at hand to check, nor the time to actually check them at the moment.)