Topic: How to translate the map with custom function
Hello,
I'd like to implement my own controllers to move, scale and rotate the map with touch on mobile device.
Actually in my classes I'm using a function like this one to move the map from one point to another one:
OnlineMaps.instance.projection.CoordinatesToTile(longitude, latitude, OnlineMaps.instance.zoom,
out double tx, out double ty);
OnlineMaps.instance.SetTilePosition(tx, ty);
but I think it's not a good idea to convert touch screen position in gps position, than get the difference, etc etc.
I'd like to be able to translate the map in a good and reliable way from screen delta positions, just like you did with the default touch control that you implemented (that I had to disable to not interfere with some others touch controls).
Could you suggest me how to do that?
Many thanks!