Skip to content

Commit b620824

Browse files
authored
Merge pull request #5 from ydfzgyj/patch-1
修复自动完成中间点模式下,吸附多线/多面时报错的问题
2 parents 079503c + ac487e1 commit b620824

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ export class Snap extends maptalks.Eventable(maptalks.Class) {
204204
}
205205

206206
_fireSnapEvent(point, geometry) {
207+
point = point.point || point;
207208
this.fire('snap', {
208209
containerPoint: point.copy(),
209210
geometry,

0 commit comments

Comments
 (0)