Skip to content
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

How can I set a new center of the map? #159

Open
myfoxtail opened this issue Aug 16, 2015 · 0 comments
Open

How can I set a new center of the map? #159

myfoxtail opened this issue Aug 16, 2015 · 0 comments

Comments

@myfoxtail
Copy link

I've tried to do a lot of these...

controls.controls.target.x = point.x;
controls.controls.target.z = point.y;
controls.controls.update();
controls.moveTo(new VIZI.Point(point.x, point.y, point.z)); (seems to be the same as 1)
map.updateView(new VIZI.LatLon(point.x, point.y), point.z);
map.camera.lookAt(new VIZI.Point(point.x, point.y, point.z));

..but nothing works well.
Can you help me with this issue?
May it be the problem in that tiles render only in viewport and if the new center is much further it can't be located?

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

No branches or pull requests

1 participant