mirror of
https://github.com/csharpee/Map-Projections.git
synced 2025-12-16 00:00:06 -05:00
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:
parent
c7bfaa6cf0
commit
0f54f15bb3
@ -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]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user