pranavborole
Posts: 4
Joined: Fri Sep 23, 2022 9:19 am

Repeat map on drag on x and y axis

Fri Sep 23, 2022 9:36 am

Hi there,

I am trying to achieve a rotated 2D map on drag like this sample https://jsfiddle.net/gh/get/library/pur ... projection.
link where I am trying https://jsfiddle.net/uvrhycka/4/

hubert.k
Posts: 929
Joined: Mon Apr 11, 2022 11:48 am

Re: Repeat map on drag on x and y axis

Mon Sep 26, 2022 8:54 am

Hi pranavborole!
Welcome to our forum and thanks for contacting us with your question!

Unfortunately, this is not possible to achieve directly from API options. It would be great if you can create a feature request here: https://github.com/highcharts/highchart ... new/choose and describe it precisely as in this post.

As a workaround, for now, I can suggest you use a custom plugin from the demo below (inside the IIFE function).

Demo: https://jsfiddle.net/BlackLabel/5fea16Ls/

Let me know if you have any further questions.
Regards!
Hubert Kozik
Highcharts Developer

pranavborole
Posts: 4
Joined: Fri Sep 23, 2022 9:19 am

Re: Repeat map on drag on x and y axis

Mon Sep 26, 2022 9:07 am

Hi there,

I am trying to achieve a rotated 2D map on drag like this sample https://jsfiddle.net/gh/get/library/pur ... projection.
link where I am trying https://jsfiddle.net/uvrhycka/4/

if the user tries to scroll or drag on the extreme right it should be infinitely scrollable and start from the start of the map

pranavborole
Posts: 4
Joined: Fri Sep 23, 2022 9:19 am

Re: Repeat map on drag on x and y axis

Mon Sep 26, 2022 9:12 am

HI Hubert.k,
Thanks for your help, i will try this solution in case of any queries, i will get back to you

hubert.k
Posts: 929
Joined: Mon Apr 11, 2022 11:48 am

Re: Repeat map on drag on x and y axis

Mon Sep 26, 2022 9:14 am

pranavborole,
It is already working as you described. It is a custom thing, so there can be some bugs, so it would be the best to create a feature request on GH :)

Regards!
Hubert Kozik
Highcharts Developer

pranavborole
Posts: 4
Joined: Fri Sep 23, 2022 9:19 am

Re: Repeat map on drag on x and y axis

Mon Sep 26, 2022 10:24 am

Sure i will create one

hubert.k
Posts: 929
Joined: Mon Apr 11, 2022 11:48 am

Re: Repeat map on drag on x and y axis

Tue Sep 27, 2022 7:23 am

Thank you for your contribution to Highcharts library!

In case of any other questions, feel free to ask anytime,
Best regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Maps”