You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works well as the polygon is drawn on the left-hand side (over America) as in the image: https://imgur.com/a/cN8QDNa
However, when I increase the longitude value, e.g:
ymin = -60; ymax = 60; xmin = -180; xmax = 30;
Instead the polygon is drawn on the right-hand side (over Eastern Europe and Asia) as in the image: https://imgur.com/a/VLy5Q4B
I expect with the valid value for longitudes should be [-180:180] and in the second example, the polygon should be drawn over America and Western Europe instead.
The text was updated successfully, but these errors were encountered:
You can simply plot two rectangles, and make the border transparent, so that they appear to be one.
the two sets of boundary coordinates, ymin = -60; ymax = 60; x1min = -180; x1max = -75; ymin = -60; ymax = 60; x2min = -75; x2max = 30;
and the transparent outline, attributes.outlineColor = new WorldWind.Color(0, 0, 0, 0);
In either case you will not have a smooth line connecting the -180 and 30 edges, instead you will have a triangle cutout there, if you want only 4 edges on your polygon, you can plot two triangles. e.g.
If you don't care about the straight connection, you can set the pathType variable of the SurfacePolgyon to 'Linear' or 'RHUMB_LINE' and the line will be smooth and curved about the 60° and -60° Latitudes.
I want to draw a simply rectangle on WebWorldWind globe with min and max latitudes and longitudes. The simplified code is below:
`
ymin = -60;
ymax = 60;
xmin = -180;
xmax = 0;
`
It works well as the polygon is drawn on the left-hand side (over America) as in the image: https://imgur.com/a/cN8QDNa
However, when I increase the longitude value, e.g:
ymin = -60; ymax = 60; xmin = -180; xmax = 30;
Instead the polygon is drawn on the right-hand side (over Eastern Europe and Asia) as in the image: https://imgur.com/a/VLy5Q4B
I expect with the valid value for longitudes should be [-180:180] and in the second example, the polygon should be drawn over America and Western Europe instead.
The text was updated successfully, but these errors were encountered: