ucdavis/wayfinding

Programatically zoom

Opened this issue · 2 comments

Hi,

Is there a way to use the existing functions to set up a simple script that allows a user to specify a single room to zoom in on without a route?

I have a very large map with about 800 individual rooms and it would be great :)

Thanks.

If all the rooms are similar in size it might be possible, but the current data structure has no idea about the size of destinations as it sees them only as one or more endpoints. This would be a good feature for the next time I rewrite.

Hi,

Thanks for your quick reply! All of my rooms are the same size and they all have doors. Perhaps I could zoom in on a door handler?

By the way, I managed to import jquery.panzoom within an Ionic application, but there is a lot of lag when I zoom or pan. I have the impression that the code is reloaded to a certain point each time panzoom is called. I wonder if you have encountered this issue.

Thanks.