geom_tile border outline but no tile outline - border

Relatively simple question: for a plotted set of data, I'd like to outline a relevant region while not outlining every tile. See picture below, where I want to have an outline around the orange region without outlining every individual tile (which is what happens if I set the "colour" command within geom_tile to something
Map with relevant data in orange

Related

Is there a way to determine whether there's a sufficient amount of space in a Pie chart segment for a label?

In the attached Google charts Pie chart the labels fit well inside the segments. Determining the length of a bit of text in HTML5 canvas is easy enough - but how do you determine whether the label will fit into a particular segment (using trigonometry) ? As you can see on the image, two of the segments don't have labels inside the segment.
EDIT: Here's an example of what I have at the moment: https://www.rgraph.net/tests/canvas.pie/in-pie-labels.html
As you see the labels for the small segments overlap. What I'm after is a way to calculate whether there's enough space for the labels at the point where they're going to be rendered. If not, I can just not draw the label like in the example image above.
Could chord size be useful to do this?
Here's the forumulae for the chord size that I found via Google:
"Chord length using trigonometry = 2 × r × sin(θ/2); where 'r' is the radius of the circle and 'θ' is the angle subtended at the center by the chord."
I sorted it (in about one hour) after 3 days of trying to calculate it with trig by using the built-in context.isPointInPath() function...
Draw the text (transparent color) to get the coordinates (x/y/w/h) of it. You might be able to get away with measuring it to get the width and height.
Draw the segment in a transparent color and do not stroke or fill it. Also, do not close the path.
Test each corner of the text rectangle (formed the x/y/w/h that you got above) using the context.isPointInPath() function. If the function returns true for each corner of the rectangle formed by the coordinates of the text, then the text will fit into the segment.

How to make normal borders of areas in Inkscape?

I'm making in interactive map of Russia. I need to select its regions on the picture for I can work with them. But it works incorrectly. When I try to select first region it's okay. But then I try to select another adjacent region just making new levers to existing contours. After I close the path, I want this region to become the full second area in the picture. But when I try to highlight this area, it turns out that Inkscape doesn't count this as an area. It believes that this is just a new open line. It turns out that a new area has not formed.In the picture you can see that the boundaries of the area are not highlighted everywhere, therefore the area remains open (it is not an area at all, it is a piece of a broken line)
You're using the wrong kind of object for your work. What you need is indeed a set of closed paths, but what you have is the borders only.
The easiest way to convert one into the other is to:
make sure all the separate borders touch at their ends
select all the separate borders
Path > Combine them into a single path
put a large rectangle below this combined path that covers the full area below
select both
Path > Division
Now you should have the lines cut through the rectangle.
Remove the parts you do not need, and close any gaps that are left.

fusion 360 how to add lip in a curved surface

I have shelled box, and I used a shelled cube to "cut" a lid or door into it. Something like this :
I want to add a lid along the border of the cut. That stays inside the body and allows the lid to sit agains it. I found no way to add an sketch into the curved surface..
I can add an sketch to the flat surface of the cut.. but if I would cut the doot using a cylinder or another "curvy box" like the main one.. them I'd be unable to find a flat surface where lay my thing..
How can I do that? A lid of 2 mm deep, that enters 2mm into the hole, along the cutting path. Any idea ?
EDIT:
As mentioned, I managed to do it on ONE surface, just because is flat and hand drawing most of the thing.. here is how it look like, not totally bad, but I guess there is a way to just go along the border of the cut ..
I also managed to draw a profile and use "SWEEP" to have the lip around ONE edge, but no along them four and the corners get rather tricky ..

Who knows, or knows how to figure out, which google map markers are available?

I want to use a variety of location markers in a map, of different colors. I like google's "teardrop"-shaped ones so that the location itself is less obscured, due to the point top of the inverted teardrop.
This is a link to the green one:
http://www.googlemapsmarkers.com/v1/009900/
...and the green uses 0099FF
But what about the other colors? Is there a list somewhere or do I have to write a utility to convert color to RGB, or what?
Even with that, how would I know which colors are supported/supplied? Or are the colors dynamically generated based on the RGB value you pass?
UPDATE
Based on the chart here:
http://cloford.com/resources/colours/500col.htm
...I would expect that entering this:
http://www.googlemapsmarkers.com/v1/65535/
...would return a bright yellow marker, but instead I get:
"400. That’s an error.
Your client has issued a malformed or illegal request.
The parameter 'chs' must have a width of at least 1 pixel.
That’s all we know."
UPDATE 2
I also found that you can put text on the marker by inserting the text in the penultimate spot.
This returns a blank yellow inverted teardrop:
http://www.googlemapsmarkers.com/v1/FFFF00/
..and this:
http://www.googlemapsmarkers.com/v1/Platypus/FFFF00/
...returns an inverted yellow teardrop with the word "Platypus" plastered on top of it.
You can pass your own RGB color. I suppose the markers are dynamically generated when the server receive your request, but anyway, you can create the color you exactly want.

How to create a custom GControl

I'm trying to create a gray "frame" (see pic below) around a google map, to try to convey the concept of an area of focus, as oppose to a point (which is usually represented with a marker). Note that this is not an overlay, that is, the gray "frame" should not move when you drag the map.
Edited: image link added
It appears that only option is to "subclass" GControl to create a custom control. I have 3 questions
1) First of all, is GControl subclassing the best course of action?
2) In my example, the canvas (div) where map renders can change its size (i.e is not fixed width). Do I have to delete and add custom control when canvas changes size? See docs http://code.google.com/apis/maps/documentation/controls.html#Custom_Controls on how to create a custom map control.
3) Now, how to do it. Naively, I thought I could create a table with 3 columns and 3 rows, and set display: none for the cell in the middle. But that doesn't work. I've also experimented with clipping, that didn't work either. My css skills are quite lacking, so there must be way to do this more elegantly than adding four rectangular gray divs. If I wanted to add an inner border, with divs, I would need to paint 8 then. In a nutshell, what's the best way to create a "hollow" rectangle?
Thanks
P.S. This is my first entry to StackOverflow. Just discovered it. It's impressive how well SO is put together.