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

No option to do transform scales #5

Closed
inerds opened this issue Sep 23, 2013 · 3 comments
Closed

No option to do transform scales #5

inerds opened this issue Sep 23, 2013 · 3 comments

Comments

@inerds
Copy link

inerds commented Sep 23, 2013

I am creating a map of Maldives, the map came out nicely, the only problem is that its too large, i want to scale down the map to like 350px , 1200px. i cant find any way to do with Mapael.

Regards

@neveldo
Copy link
Owner

neveldo commented Sep 23, 2013

Currently, the map is automatically resized to the size of its container. So reduce the width of the container will reduce the width of the map (the height of the map is relative to the width). If you want to set a custom width, you can use the map.width parameter.
If you want to resize path coordinates of your map, you should edit the SVG file with an editor like Inkscape.

@inerds
Copy link
Author

inerds commented Sep 23, 2013

Thanks @neveldo set.width seems to work,

I stll look forward for options like transform : rotate ..etc

@neveldo
Copy link
Owner

neveldo commented Sep 24, 2013

You can apply transformations on each areas through the attrs.transform option. See raphael documentation for more infos about transformations : http://raphaeljs.com/reference.html#Element.attr , http://raphaeljs.com/reference.html#Element.transform .

IF you want to apply a global transformation on your map, you will have to open your SVG file with Inkscape and do the work before.

@neveldo neveldo closed this as completed Nov 7, 2013
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