Topic: OnlineMaps with RWT + another question

Hi, I have 2 questions about online maps.

1/ I am using RealWorldTerrain, and would like how OnlineMaps could work on the same map, how the 2 assets could work together.
I mean, I download for instance the tiles in low res (for instance zoom=14), so the app can work offline anyway. But if the user has an internet connection, and if level 18 is needed, Lowres tiles on the map are replaced in real time by level18 downloaded tiles (hope it is clear...)

2/ In your webGL demo (http://infinity-code.com/en/demos/onlin … -maps-demo), is it possible to add another "HTML layer" (for instance a virtual tour) using this asset https://assetstore.unity.com/packages/t … ser-55459, and  continue to display the result in a web browser ?

Best regards, Phil

Re: OnlineMaps with RWT + another question

Hello.

1. Yes, it is possible.
2. I did not see Embedded Browser in action, but I think what you described will work.

Kind Regards,
Infinity Code Team.

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

Re: OnlineMaps with RWT + another question

Alex Vertax wrote:

Hello.

1. Yes, it is possible.
2. I did not see Embedded Browser in action, but I think what you described will work.

Thanks Alex for your prompt (as usual!) answer.

1 : Any tuto about the procedure (I haven't bought OLMaps yet, maybe this is described in one of the tutorials) ?
2 : I'll try !

Re: OnlineMaps with RWT + another question

Something like that:

using UnityEngine;

public class InstantiateMapWithInternet : MonoBehaviour
{
    /// <summary>
    /// Real World Terrain Container in Scene
    /// </summary>
    public GameObject realWorldTerrainContainer;

    /// <summary>
    /// Prefab of the map in Assets
    /// </summary>
    public GameObject mapPrefab;

    private void Start()
    {
        OnlineMapsWWW www = new OnlineMapsWWW("https://www.google.com"); // Any site
        www.OnComplete += OnRequestComplete;
    }

    private void OnRequestComplete(OnlineMapsWWW www)
    {
        if (www.hasError) return;
        Instantiate(mapPrefab);
        OnlineMapsUtils.Destroy(realWorldTerrainContainer);
    }
}
Kind Regards,
Infinity Code Team.

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