Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't use tm2z files? #2

Open
mojodna opened this issue Sep 25, 2015 · 3 comments
Open

can't use tm2z files? #2

mojodna opened this issue Sep 25, 2015 · 3 comments

Comments

@mojodna
Copy link
Owner

mojodna commented Sep 25, 2015

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

@mojodna
Copy link
Owner Author

mojodna commented Sep 25, 2015

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.

@alonek1
Copy link

alonek1 commented Jun 13, 2017

thanks,
how can i convert tm2 to tm2z ?

@mojodna
Copy link
Owner Author

mojodna commented Jun 15, 2017

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants