Skip to content

希望 maptalks.three 中的 camera 支持相机类型选择 #1005

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

Open
liuxinqiong opened this issue Sep 18, 2019 · 2 comments
Open

希望 maptalks.three 中的 camera 支持相机类型选择 #1005

liuxinqiong opened this issue Sep 18, 2019 · 2 comments

Comments

@liuxinqiong
Copy link

maptalks's version and what browser you use?

0.45.1

Issue description

目前 maptalks + maptalks.three 中使用的 camera 由 maptalks 接管,只能是透视相机,无法自主选择正交相机,希望可以自主选择相机类型和自由切换相机类型,使用正交的场景还挺多的

Please provide a reproduction URL (on any jsfiddle like site)

@ktoiv
Copy link

ktoiv commented Jun 25, 2020

I relied on Google Translate for this but if I understood correctly this issue is about using THREE.js controls instead of maptalks controls. Is there any way this can be achieved now? I'd really like to use orbit-functionality that is available in THREE so that you can rotate camera around a specific point.

@fuzhenn
Copy link
Member

fuzhenn commented Jul 4, 2020

@ConstantKrieg Thanks for the suggestion! But I'm afraid using THREE controls is not feasible right now because map has some restrictions on camera's rotation and tilting.

Rotating camera around a specific point is a quite good idea, I'm considering to add something like map.rotateAround(center) based on map.animate function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants