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

Speed up map rendering #146

Open
slaweet opened this issue Feb 23, 2016 · 0 comments
Open

Speed up map rendering #146

slaweet opened this issue Feb 23, 2016 · 0 comments

Comments

@slaweet
Copy link
Member

slaweet commented Feb 23, 2016

Rendering maps is currently slow (on low-spec mobile it can take several minutes). Just load any page (e.g. [0]) and run profiler in browser developer tools.

There is an unnecessary step when Kartograph.js [1] converts the svg paths from string to array of points and back to strings. Maybe use of Kartograph.js can be avoided and use only RaphaelJS [2], which is currently called by Kartograph.js anyway. RaphaelJS only is used in anatom.cz.

[0] http://slepemapy.cz/practice/world/state
[1] http://kartograph.org/docs/kartograph.js/
[2] https://github.com/DmitryBaranovskiy/raphael

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