Open mmoussa opened 1 year ago
Hi if you want to change the camera only in runtime simply use
CameraBoundsTileProviderOptions cameraBoundsOptions =
abstractMap.Options.extentOptions.defaultExtents.cameraBoundsOptions;
cameraBoundsOptions.camera = mapCamera;
Also check the CameraBoundsTileProviderOptions script it has public Camera camera;
public int visibleBuffer;
public int disposeBuffer; variables
I'm trying to set the map extent options to Camera Bounds at runtime, and I'm running into the following error:
Here's the code I'm trying:
It seems like the camera that's passed in is reset to null inside OnTileProviderChanged (or the options are reset to the default).