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 ?

Re: Map Provider

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.

Post's attachments

Attachment icon OnlineMapsWWW.cs 14.88 kb, 12 downloads since 2022-12-15 

Kind Regards,
Infinity Code Team.

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

Re: Map Provider

there is two errors !!!

Post's attachments

Attachment icon Untitled.png 35.27 kb, 3 downloads since 2022-12-18 

Re: Map Provider

Please replace OnlineMapsWWW file in your project. Attached to my previous post.

Kind Regards,
Infinity Code Team.

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