Topic: Using a single Online Maps for multiple maps
I'm creating a game where you set 5-10 GPS positions on map. Each GPS position is shown on its own page.
You can see each map position you have set by swiping to that page. So each page needs to have a texture with the positioned map. Each map on the 5-10 pages currently use OnlineMaps with an "OnlineMapsTextureControl".
You can also go into each map, which opens a new scene additively, to edit the position. The map in that editor uses "OnlineMapsTilemapControl".
1) Do you suggest doing all this with just a single instance of OnlineMaps?
2) Or should I have two, one for all the textures on pages, and one for editing?
3) Or should I have all 11, and disable/enable them appropriately as user navigates?
if 1) Should I then have an OnlineMaps that contains both the "TextureControl" (for the page mode) and the "TilemapControl" (for the edit mode), and enable/disable either component based on user navigation?
if 1) or 2) Can I create a texture for OnlineMaps to write to, and then create a new one in runtime, so that I can cache each GPS position's texture when user leaves page, allowing user to smoothly swipe between pages when all textures are cached?
And should I disable the OnlineMaps object that isn't currently used when in edit mode or page mode?
if 3) Should all of them have the location service running at the same time, or should it be enabled/disabled based on navigation?
Thanks