Page 1 of 1

TWorldSeries Pan and Zoom on Mobile

Posted: Sat Mar 28, 2020 5:22 am
by 16487191
Hi,

How can I get both zoom and pan to work on iOS or Android?

Thanks

Re: TWorldSeries Pan and Zoom on Mobile

Posted: Tue Mar 31, 2020 6:20 am
by yeray
Hello,

Check the example from a customer here:
viewtopic.php?f=17&t=16000#p71063

Re: TWorldSeries Pan and Zoom on Mobile

Posted: Tue Mar 31, 2020 7:01 am
by 16487191
I have been unable to get gestures to work correctly with maps. Do you have an example. Why can't your internal methods work. Panning works fine, and zooming works fine if only one of them is enabled but if both are enabled only the zoom works on mobile devices.

Re: TWorldSeries Pan and Zoom on Mobile

Posted: Wed Apr 01, 2020 8:33 am
by yeray
Hello,
BruceC wrote:
Tue Mar 31, 2020 7:01 am
Panning works fine, and zooming works fine if only one of them is enabled
Zoom works alone by drawing a rectangle, isn't it?
If you want to zoom by a pinch gesture, you'll need to implement gestures manually like in that application I suggested in the last post.
I'll try to do the same with a Map series to see if there's any problem with that.

Re: TWorldSeries Pan and Zoom on Mobile

Posted: Wed Apr 01, 2020 3:21 pm
by yeray
Hello,

Here it is:
GesturePanZoom.zip
(14.86 KiB) Downloaded 1489 times

Re: TWorldSeries Pan and Zoom on Mobile

Posted: Thu Apr 02, 2020 8:42 am
by 16487191
Many thanks.

Re: TWorldSeries Pan and Zoom on Mobile

Posted: Sat Apr 04, 2020 6:09 am
by 16487191
Couple of questions on this.

How can pannining past beginning end of axis be prevented?

How can zoom be prevented going too far in or out?

How can the aspect ratio be mainained when zooming?

Thanks.

Re: TWorldSeries Pan and Zoom on Mobile

Posted: Wed Apr 15, 2020 9:21 am
by yeray
Hello,

You have to add extra logic to do all this at handlePan and handleZoom methods.

Re: TWorldSeries Pan and Zoom on Mobile

Posted: Thu Apr 16, 2020 6:03 am
by 16487191
I more or less have this working as I want, except zooming lags on Android devices. Do you have any recommendations?

Re: TWorldSeries Pan and Zoom on Mobile

Posted: Tue Apr 28, 2020 12:46 pm
by yeray
Hello,

I guess this is the same you posted here. I'll reply you there.