Hi,
With Krpanomap is it possible to tween the zoom level ?
I see we can setzoom, zoomin but only one level but didn't found a way to tween the zoom level to a specific value ?
Thank you
Tween Zoom krpanomap
-
-
- Official Post
-
ok course, that's what I tried but it didn't work, a typo...
When using pantospot and tweening zoom at the same time then tweening works only when pantospot is finished so it's a bit "brutal".
Could we have a zoomtospot(name,zoom) action ? -
- Official Post
The pantospot() function is just calling the panto() function and this one is tweening the zoom.
See here the plugin source:
krpano.com - View SourceQuoteCould we have a zoomtospot(name,zoom) action ?
Yes, either just call panto with the spot coordinates,
or add a function like this:
Codeplugin.zoomtospot= function(spotname, zoomlevel) { var spot = spotArray.getItem(spotname); if (spot) { plugin.panto(spot.lat, spot.lng, zoomlevel); } }
or - extend the pantospot function with an optional zoomlevel parameter:
-
oh brilliant,
Didn't notice that krpanomaps was open source, thanks !
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!