-
Notifications
You must be signed in to change notification settings - Fork 94
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
Resolution is not good #71
Comments
you can pass a |
@devnedra Could you add more detail to try to explain? |
@slowe I think, @devnedra meant the resolution on »retina« displays. You could increase it by dynamically reading the w = window.innerWidth;
h = window.innerHeight;
this.canvas.width = w*window.devicePixelRatio;
this.canvas.height = h*window.devicePixelRatio;
this.canvas.css({'width':w+'px','height':h+'px'}); In this case, you also need to scale the canvas element up: ctx.scale(window.devicePixelRatio,window.devicePixelRatio); You need to modify I made a quick test on my device (pixel ratio: 2) and it seemed fine to me (but I am not really into the edge cases of your script). |
Please how i can increase the resolution of the map. Currently this is not good .
The text was updated successfully, but these errors were encountered: