ThinkGeo.com    |     Documentation    |     Premium Support

WrapDateline map click feature is not getting issue

Hi,
In main Map click, the feature is getting where as same thing not working in WrapDateline.
I checked the positions of main map and WrapDateline map, both are different.That’s why it’s not working.
Can you please clarify one thing that, WrapDateline is only for showing the main map as copy, not to do some operations.

If we can do it, how can we achieve it. Please suggest me some ideas of it.

Please find Reference sample pages
Sample_WorldWrapMapClick.zip (3.7 KB)

Thanks,
Riyaz

Hi Riyaz,

Thanks for your sample, the shape can wrap but the coordinate won’t be.

The solution should be you add a adjust logic for the e.Position, if it’s not in correct bouding box(-180 < x < 180), just change the value for calculate to make it into this region for example: Xnew = X1 + 360 * count (-180 < Xnew < 180).

Wish that’s helpful.

Regards,

Ethan

Hi Ethan,
I tried your logic, but it’s not coming correctly. May be logic not clear. Can you please give me full code for achieving this.

Thanks,
Riyaz

Hi Riyaz,

We refine your sample code. Please have a try.
Sample_WorldWrapMapClick.aspx.cs (10.5 KB)

If you have any questions, please feel free to contact us.

Thank,
Mark