gotcha

Author Topic: Create a map with a drawn area that match with boundaries  (Read 1044 times)

October 04, 2017, 10:18:12 AM
Read 1044 times

yorik

  • Newbie

  • Offline
  • *

  • 1
Hi everybody,

I would like to realise a map like the attached one (unnamed.png) but I'am really lost to make it.

I've got a vector background map and I drew a colored oval in order to make a zone (that overflow the limit of the country as you can see in the capture.png attached picture). I need to keep only the part of the ovale that match the background map but I can't find the way to do that.

I think it's very basic for you but I am totally newbie with drawing software so it's a nightmare for me.... :help2:

Thanks in advance for your help.
  • 0.92
  • W10

October 04, 2017, 11:15:17 PM
Reply #1

flamingolady

  • IC Mentor

  • Offline
  • ******
  • Flamingo Lady

  • 154
  • Gender
    Female

    Female
hi and welcome.  Well, it's going to be a lot easier than you think actually.  If you haven't already done so, import or open your svg in Inkscape.  I would put the map on a separate layer (open the layer menu and add + a layer).  The yellow zone needs to be on the uppermost layer #1, the map on layer 2.

Instead of using the circle tool, click on the bezier tool, and draw your zone.  (each time you click it will create a node and these nodes together will eventually form the zone. be sure to come back to the original starting point at the end and double click on the first node in order to end the design.  Then you can use select the node tool, and go back into your zone and move the nodes around until they are placed exactly where you want them to be.  Open the Fill and Stroke menu and select a fill color (yellow).  In this box you will need to change the opacity so that you can see through the yellow zone to the map below.  so you might start with an opacity of 30, chg the opacity until you get to the opacity that you like.
These are the basics (without knowing your skill knowledge).  Feel free to come back and let us know if you get stumped.  It might also be helpful for you to view some of the tutorials that are on the home page here.  Good luck.
dee

October 05, 2017, 04:02:59 AM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

I have a couple of questions, to make sure I understand what you want to do.  Using your 2nd attachment, with the red oval, as an example.

Do you want the result to be oval shaped?  The way I understand your message, the answer is no.  You only want the part of the map which lies inside the red oval, right?  So that the bottom part will be sort of oval shaped, but the top part will have the shape of the counties or districts, or whatever the smaller units are.

And the background map is vector, right.  What format is it?  SVG, EPS, AI, or other?  I might need to see that vector file, but maybe not.

More than likely, when you click on any part of that map, the entire map is selected.  Is that right?  If that's the case, then this is the very easiest way to do it:

 -- start with nothing selected, and then do Ctrl A (this will select everything - both the map and the red oval
 -- Object menu > Clip > Set

There are a couple of reasons why that might not work for you.  But since it's so easy, and it will take typing so much text to explain why, I suggest that you just try it.  If you find some reason why it doesn't work, we can move on to more involved solutions.

For the one with the yellow, it looks like there are 2 ovals which are overlapping.  Is that right?

It looks like the same country or whatever it is, as the one with the red oval, except that it doesn't have the white background.  Also, it appears to have some other highlighting or something.  And plus, wherever the white background is missing, the yellow oval is not showing either.  Do you know why it looks like that?

The reason I'm asking about that, is because it looks like you might have used exactly what I suggested for the red oval, on the yellow one, except that you didn't use the yellow ovals for the clipping path.  Instead it looks like the yellow ovals might be clipped with the path that goes around the whole country.  If that's what happened, they you need to undo that.

If you don't know why it looks different from the one with the red oval, then....well you can probably use a very similar thing for that map.  But the reason I say probably, is because parts of the yellow ovals are missing.  So I'm not sure if they can be used for a clipping path (like with the red oval).

Would it be possible for you to share that file?  I mean the vector file, with the yellow ovals.  I'm a little hesitant to suggest the same thing for the yellow one, since parts of the yellow ovals are missing, and I don't know why (or how).  If you have an SVG file, that would be better for me, because I can't open EPS files.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann