Пример #1
0
        internal override void AsynchronousConfigurationLoaded(
            MapConfigurationSection config,
            object userState)
        {
            if (config is null)
            {
                return;
            }
            var flag1 = false;
            var str   = config["ROADWITHLABELS"];

            if (str.IndexOf("{0-3}") != -1)
            {
                subdomains = "0,1,2,3";
                str        = str.Replace("{0-3}", "{subdomain}");
            }
            if (str.IndexOf("{0-7}") != -1)
            {
                subdomains = "0,2,4,6 1,3,5,7";
                str        = str.Replace("{0-7}", "{subdomain}");
            }
            var flag2 = flag1 || str != tileUriFormat;

            tileUriFormat = str;
            if (!flag2)
            {
                return;
            }
            RebuildTileSource();
        }
Пример #2
0
 internal override void AsynchronousConfigurationLoaded(
     MapConfigurationSection config,
     object userState)
 {
 }