Skip to content
Snippets Groups Projects

Resolve MIN-94 "Feat/ adding layer line"

1 unresolved thread
Merged Miłosz Grocholewski requested to merge feat/MIN-94-adding-layer-line into development
1 unresolved thread

Closes MIN-94

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
27 let geometry = geom;
28 if (!geom) {
29 geometry = new LineString([]);
30 }
31 if (!coordinates.length) {
32 geometry.setCoordinates(coordinates);
33 return geometry;
34 }
35 const lastCoordinate = coordinates.at(-1) as Coordinate;
36 const lastCoordinateX = Math.min(
37 restrictionExtent[2],
38 Math.max(restrictionExtent[0], lastCoordinate[0]),
39 );
40 const lastCoordinateY = Math.min(
41 restrictionExtent[3],
42 Math.max(restrictionExtent[1], lastCoordinate[1]),
  • added 1 commit

    • 974bf3c0 - feat(layer-line): add condition to block drawing outside extent

    Compare with previous version

  • mentioned in commit b9c4ae7e

  • Please register or sign in to reply
    Loading