Topic: How to get the map to be 1:1 with earth

I would like to know how you would achieve a 1:1 with earth for AR so that it feels like the objects are the correct distance from you, for example, my position to a building 40km/24.8548miles from me will look that far in the application.

Re: How to get the map to be 1:1 with earth

Hello.

Example:
http://infinity-code.com/atlas/online-m … ample.html

Kind Regards,
Infinity Code Team.

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

Re: How to get the map to be 1:1 with earth

Thanks, that worked but what should the width and height in pixels be?

Re: How to get the map to be 1:1 with earth

This is resolution of the map.
Width and height can have any values equal to N * 256.
Larger values - more detailed map.
But do not forget about rationality.
Very large values can slow down your application.

Kind Regards,
Infinity Code Team.

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

Re: How to get the map to be 1:1 with earth

When doing testing with the resolution of the map, changing the numbers gives me a different size map. Attached is an image that shows side by side that changing the resolution of the image changes the size of it aswell. I need some guidance to this.

Post's attachments

Attachment icon 512.PNG 846.18 kb, 5 downloads since 2019-06-07 

Re: How to get the map to be 1:1 with earth

I just tested it, and I have the same size of the map in the scene with different map resolutions.

Please send screenshots of your inspectors so that I can test this with your settings.

Kind Regards,
Infinity Code Team.

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

7 (edited by labcasia 2019-06-07 04:26:51)

Re: How to get the map to be 1:1 with earth

256

Post's attachments

Attachment icon 256Inspector.PNG 191.81 kb, 5 downloads since 2019-06-07 

8 (edited by labcasia 2019-06-07 04:28:16)

Re: How to get the map to be 1:1 with earth

512

Post's attachments

Attachment icon 512Inspector.PNG 400.51 kb, 5 downloads since 2019-06-07 

Re: How to get the map to be 1:1 with earth

This happens because you have the same zoom.
Online Maps draws a map based on the center point.
In the first case, you specify that you want 256x256 at zoom - 11.2.
In the second case, you specify that you want 512x512 at zoom - 11.2.
This gives you a map view twice as large as in the first case.
See the attached screenshot.
To display the same view, you need to use zoom - 10.2 for a size of 256x256.

Post's attachments

Attachment icon img1.png 1.13 mb, 5 downloads since 2019-06-07 

Kind Regards,
Infinity Code Team.

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