-
Notifications
You must be signed in to change notification settings - Fork 509
Geometry.Edit/Drag support altitude #2448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ee2eb6e
to
2a92675
Compare
需要增加一下带海拔的Geometry的edit和drag的测试用例 |
coordiantes.z = 0; | ||
const isPoint = !geometry.getGeometries && geometry.isPoint; | ||
if (isPoint) { | ||
coordiantes.z = altitude; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: coordiantes -> coordinates
src/geometry/Geometry.ts
Outdated
@@ -1953,6 +1953,34 @@ export class Geometry extends JSONAble(Eventable(Handlerable(Class))) { | |||
return this; | |||
} | |||
|
|||
getEditCenter() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果这个方法只在editor或drag里用到,可以考虑方法名增加_
,并加上 @internal 标签不公开出去
已经修改好 @fuzhenn |
fix #2294
fix maptalks/issues#768
Geometry 编辑支持携带海拔