TWorldSeries Pan and Zoom on Mobile

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
BruceC
Newbie
Newbie
Posts: 15
Joined: Tue Oct 15, 2019 12:00 am

TWorldSeries Pan and Zoom on Mobile

Post by BruceC » Sat Mar 28, 2020 5:22 am

Hi,

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

Thanks

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TWorldSeries Pan and Zoom on Mobile

Post by Yeray » Tue Mar 31, 2020 6:20 am

Hello,

Check the example from a customer here:
viewtopic.php?f=17&t=16000#p71063
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

BruceC
Newbie
Newbie
Posts: 15
Joined: Tue Oct 15, 2019 12:00 am

Re: TWorldSeries Pan and Zoom on Mobile

Post by BruceC » Tue Mar 31, 2020 7:01 am

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.

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TWorldSeries Pan and Zoom on Mobile

Post by Yeray » Wed Apr 01, 2020 8:33 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TWorldSeries Pan and Zoom on Mobile

Post by Yeray » Wed Apr 01, 2020 3:21 pm

Hello,

Here it is:
GesturePanZoom.zip
(14.86 KiB) Downloaded 1386 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

BruceC
Newbie
Newbie
Posts: 15
Joined: Tue Oct 15, 2019 12:00 am

Re: TWorldSeries Pan and Zoom on Mobile

Post by BruceC » Thu Apr 02, 2020 8:42 am

Many thanks.

BruceC
Newbie
Newbie
Posts: 15
Joined: Tue Oct 15, 2019 12:00 am

Re: TWorldSeries Pan and Zoom on Mobile

Post by BruceC » Sat Apr 04, 2020 6:09 am

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.

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TWorldSeries Pan and Zoom on Mobile

Post by Yeray » Wed Apr 15, 2020 9:21 am

Hello,

You have to add extra logic to do all this at handlePan and handleZoom methods.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

BruceC
Newbie
Newbie
Posts: 15
Joined: Tue Oct 15, 2019 12:00 am

Re: TWorldSeries Pan and Zoom on Mobile

Post by BruceC » Thu Apr 16, 2020 6:03 am

I more or less have this working as I want, except zooming lags on Android devices. Do you have any recommendations?

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TWorldSeries Pan and Zoom on Mobile

Post by Yeray » Tue Apr 28, 2020 12:46 pm

Hello,

I guess this is the same you posted here. I'll reply you there.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply