Skip to content

Commit

Permalink
Adjust getPoints to new handle callback
Browse files Browse the repository at this point in the history
Change-Id: Ifc65cfe01f88209ca9f0e50583c652744112fee7
Signed-off-by: mert <[email protected]>
  • Loading branch information
mert authored and merttumer committed Mar 1, 2021
1 parent 7d66977 commit d3eeaac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions loleaflet/src/layer/vector/Path.Transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,14 +481,14 @@ L.Handler.PathTransform = L.Handler.extend({
_getPoints: function () {
var rectangleHandles = this.options.handles['rectangle'];
if (rectangleHandles && rectangleHandles !== '') {
var nw = rectangleHandles['1'],
north = rectangleHandles['2'],
ne = rectangleHandles['3'],
west = rectangleHandles['4'],
east = rectangleHandles['5'],
sw = rectangleHandles['6'],
south = rectangleHandles['7'],
se = rectangleHandles['8'];
var nw = rectangleHandles['1'][0],
north = rectangleHandles['2'][0],
ne = rectangleHandles['3'][0],
west = rectangleHandles['4'][0],
east = rectangleHandles['5'][0],
sw = rectangleHandles['6'][0],
south = rectangleHandles['7'][0],
se = rectangleHandles['8'][0];
return [sw, west, nw, north, ne, east, se, south];
}

Expand Down

0 comments on commit d3eeaac

Please sign in to comment.