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

support for HiDPI #53

Open
mcm-jyl opened this issue Aug 29, 2017 · 0 comments
Open

support for HiDPI #53

mcm-jyl opened this issue Aug 29, 2017 · 0 comments

Comments

@mcm-jyl
Copy link

mcm-jyl commented Aug 29, 2017

The module doesn't seem to works with HiDPI screens like Retina.

Example:
save following under config.json, then run /usr/bin/nodejs /usr/bin/tessera -c . -p 28089

{
 "/toner": {
   "source": "tilejson+http://staging.tile.stamen.com/toner-background/index.json"
  },
 "/toner-http": {
   "source": "http://toner-elb-3vaew2i23b6d-1666871272.us-east-1.elb.amazonaws.com/toner-background/{z}/{x}/{y}.png"
  }
}

http://127.0.0.1:28089/toner-http/6/11/[email protected] returns a 512x512 image. Fine.

http://toner-elb-3vaew2i23b6d-1666871272.us-east-1.elb.amazonaws.com/toner-background/6/11/[email protected] returns a 512x512 image (it's the link described in the tilejson file). Fine.

http://127.0.0.1:28089/toner/6/11/[email protected] returns a 256x256 image. Wrong :-(.

The solution is probably as simple as integrating the modifications proposed in https://github.com/mapbox/node-tilejson/pull/26/files.

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

1 participant