Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/polygon/HerePolygonOverlayRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
import {
AbstractPolygonOverlayRenderer,
densifyAndNormalize,
densifyPolygonRing,
type PolygonEntity,
type PolygonState,
} from '@mapconductor/js-sdk-core';
Expand Down Expand Up @@ -98,7 +98,9 @@ function buildLineString(
// Core pipeline: densify (great-circle when geodesic, linear lat/lng
// otherwise — Android's straight-line semantics) and normalize into HERE's
// [-180, 180] longitude range.
for (const point of densifyAndNormalize(points, geodesic)) {
// リングの閉じる辺(末尾 → 先頭)も他の辺と同じく補間する(輪郭と同じ線にする)。
const ring = densifyPolygonRing(points, geodesic).map((point) => point.normalize());
for (const point of ring) {
lineString.pushPoint(toGeoCoordinates(point));
}
return lineString;
Expand Down