points deserve aspect, too.

I accidentally ignored aspect when projecting points.  I'm glad I noticed that was rong while just looking at the code rather than discovering that later when finalizing my template maps.
This commit is contained in:
Justin Kunimune 2023-12-07 20:08:29 -05:00
parent c7bfaa6cf0
commit 0f54f15bb3

View File

@ -307,7 +307,7 @@ public class MapDesignerVector extends MapApplication {
// for a point, just project its one pair of coordinates
else if (elementS instanceof SVGMap.GeographicPoint) {
SVGMap.GeographicPoint pointS = (SVGMap.GeographicPoint) elementS;
double[] newCoords = proj.project(pointS.y, pointS.x);
double[] newCoords = proj.project(pointS.y, pointS.x, aspect);
newCoords[0] = scale*max(min(newCoords[0], absoluteMaxX), absoluteMinX);
newCoords[1] = -scale*max(min(newCoords[1], absoluteMaxY), absoluteMinY);
elementP = new SVGMap.GeographicPoint(pointS.formatSpecifier, newCoords[0], newCoords[1]);