Topic: Map Provider
hi
i used a Mapy.CZ Provider and Summer Type
but it give me a blank screen .
befor one year i used the same provider in other application and it work. now its blank .
any idea please ?
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Map Provider
hi
i used a Mapy.CZ Provider and Summer Type
but it give me a blank screen .
befor one year i used the same provider in other application and it work. now its blank .
any idea please ?
Hello.
The problem is that Mapy.CZ has problems with the SSL certificate.
Most likely this is a temporary problem, and it will be automatically resolved when the service renews its certificate.
How to work around this right now:
using UnityEngine;
using UnityEngine.Networking;
public class MapyCZCertificateHandler : MonoBehaviour
{
private void Start()
{
OnlineMapsWWW.OnCreateRequest += OnCreateRequest;
}
private void OnCreateRequest(OnlineMapsWWW www)
{
www.request.certificateHandler = new Handler();
}
public class Handler : CertificateHandler
{
protected override bool ValidateCertificate(byte[] certificateData)
{
return true;
}
}
}
This code uses changes to OnlineMapsWWW class not yet available in v3.8, so I'm attaching the modified file. Replace it in your project.
there is two errors !!!
Please replace OnlineMapsWWW file in your project. Attached to my previous post.
Infinity Code Forum → Online Maps Help → Map Provider
Powered by PunBB, supported by Informer Technologies, Inc.