Jump to content
Software FX Community

Map Zoom


pearsonj
 Share

Recommended Posts

Thanks for the quick response.  That helped.  But I also would like set the bounding box of the map.  In my case, I am trying to use your Asia map as a Middle East map.  I deleted the countries that I didn't need from the svg.  That got rid of the countries that I didn't want, but now there is a bunch of white space.  The svg element of the included svg documents has an attribute called "viewBox" that I think would take care of my needs, but it seems to get ignored.  Is there another way to accomplish this?

 thanks, Jake

Link to comment
Share on other sites

Towards the beginning of the SVG file you see something like: 

 <

svg width="724.12pt" height="601.27pt" viewBox="0 0 724.12 601.27" xml:space="preserve">

You need to adjust all of these to the new size. If you removed things from the left and top, you will need to use a SVG editor to move the remaining content so that it is closer to the top,left corner.

Link to comment
Share on other sites

Thats what I was afraid of.  I found a few different free svg editors, do you guys reccomend any of them?  Also, could you add support for the viewBox field you mentioned to your todo list.  That way, I could set the default zoom out to crop on a certain area of the svg.  Or perhaps even better would be to add a "Crop" property to the "Map" object of type "Rectangle" so I could programattically zoom in on a certain area of a map (like the whole panhandle of Florida).

  thanks, Jake

post-2110-13922400392948_thumb.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...