IE hangs when UrlTemplateId is not a valid IP address or no connection to the Internet

5 posts, 0 answers
  1. Sergey
    Sergey avatar
    4 posts
    Member since:
    May 2014

    Posted 29 May 2014 Link to this post

    I have a problem with IE10. Explorer hangs when tiles can not read UrlTemplateId. If UrlTemplateId is not a valid IP address or no connection to the Internet. In FireFox and Chrome  all ok! 

    How can I solve this problem with IE?
  2. Sergey
    Sergey avatar
    4 posts
    Member since:
    May 2014

    Posted 30 May 2014 Link to this post

    @(Html.Kendo().Map()
        .Name("map")
        .Center(30.268107, -97.744821)
        .Zoom(3)
        .Layers(layers =>
        {
            layers.Add()
                .Type(MapLayerType.Tile)
                .UrlTemplateId("http://tile2.opencyclemap.org/transport1/#= zoom #/#= x #/#= y #.png")
                .Subdomains("a", "b", "c")
                .Attribution("&copy; <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>." +
                             "Tiles courtesy of <a href='http://www.opencyclemap.org/'>Andy Allan</a>");
        })
        .Markers(markers =>
        {
            markers.Add()
                .Location(30.268107, -97.744821)
                .Shape(MapMarkersShape.PinTarget)
                .Tooltip(tooltip => tooltip.Content("Austin, TX"));
        })
    )
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 03 Jun 2014 Link to this post

    Hello Sergey,

    I am not sure what cause this issue and I need more time to investigate it. I will let you know when I have more information about the problem.

    Thank you for the understanding.

    Regards,
    Hristo Germanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Sergey
    Sergey avatar
    4 posts
    Member since:
    May 2014

    Posted 03 Jun 2014 in reply to Hristo Germanov Link to this post

    The problem with Internet Explorer crash disappears if I specify parameter errorTemplateUrl.

    $("#map").kendoMap({
            center: [@Model.Lat, @Model.Lon],
            zoom: @Model.Zoom,
            layers: [
                
               {
                   minZoom: 17,
                   type: "tile",
                   urlTemplate: "@Model.UrlTemplate",
                   attribution: "&copy; AutoLocal",
                   errorUrlTemplate:"http://auto.local/Content/img/NotAvalable.png",
               },
                {
                    type: "tile",
                    urlTemplate:"http://auto.local/OSMT/NokiaMap/osm_tiles/#= zoom #/#= x #/#= y #.png",
                    attribution: "&copy; AutoLocal",
                    opacity:1,
                    errorUrlTemplate:"http://auto.local/Content/img/NotAvalable.png",
                    maxZoom: 16
                }            
            ]
        });
  6. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 03 Jun 2014 Link to this post

    Hi Sergey,

    I have fixed the problem with the crashes under IE and the fix will be included with the next internal build scheduled for this week.

    The second problem is that the MVC wrappers haven't errorUrlTemplate. This issue will be fixed as soon as possible.

    I have updated your points.

    Regards,
    Hristo Germanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready