Topic: How to transform the WGS coordinate system into GCJ coordinate system

Hi,

I‘m using onlinemaps to create a game that can combine the map to show the actual terrain. The map provider is Amap and I get elevation data from bingmap. But amap uses GCJ02 coordinates system in China, and bingmap uses WGS84. How do I match them?

Thank you in advance for your reply.

Re: How to transform the WGS coordinate system into GCJ coordinate system

Hello.

In general, Evil Transform is used to convert WGS84 <-> GCJ-02:
https://github.com/googollee/eviltransform

So, most likely, you need to create a class that inherits OnlineMapsProjectionSphericalMercator, which will convert the coordinates to GCJ, and specify the projection for amap provider (OnlineMapsProvider.projection).
http://infinity-code.com/doxygen/online … cator.html
http://infinity-code.com/doxygen/online … 1ef1b24402

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!