Topic: advice on how to accomplish this

Hi Alex, I'm hoping you can help explain how I would accomplish this:

I'm creating an AR app on iOS that is location based, which is why I'm using online maps 4.

I have a Tileset map
I have User Location script on the map
I have real tileset size example script on the map

The camera will be perpendicular to the map located in the center of the map, updated on GPS location change events
The map will not be visible, it's used to keep AR objects placed at geopoints, which should update as the users loc changes.

I'm trying to keep this simple and leverage online maps functionality and examples.

What's the best way to keep the map updating with the users location?  From reading examples/forum posts I'm assuming that I would be creating a marker which gets updated with loc change events, and then somehow the map will follow the marker.  Does that sound correct?  Am I making this more complicated than necessary?

I need to see the map while this is in development, but it's super blurry/pixelated, so I'm wondering if that's normal.  (due to zoom level). current zoom is 17, but this can be changed since I'm using real size example script.

I don't see the camera moving to the center once real size example runs.

Anyway, these are just some problems I'm having initially; probably making things too complicated, which causes more problems.

Thanks!

Re: advice on how to accomplish this

Hi.

“The camera will be perpendicular to the map”?
Most likely, you meant parallel to the map, like in an FPS game, right?

The best way is to use the User Location component, which will set the center of the map to the user's location.
Without creating a marker, because you simply don't need it.

Yes, real tileset size does not control the camera.
Camera control should be implemented by other scripts.
In your case, most likely, the map should not control the camera at all and should adjust to the current view.
Just center the map in the camera position.
Something like:

control.transform.position = target.transform.position - control.center;
Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.