This is a migrated thread and some comments may be shown as answers.

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

4 Answers 86 Views
Map
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 30 May 2014, 04:30 AM
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?

4 Answers, 1 is accepted

Sort by
0
Sergey
Top achievements
Rank 1
answered on 30 May 2014, 05:58 AM
@(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"));
    })
)
0
Hristo Germanov
Telerik team
answered on 03 Jun 2014, 09:00 AM
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.

 
0
Sergey
Top achievements
Rank 1
answered on 03 Jun 2014, 10:35 AM
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
            }            
        ]
    });
0
Hristo Germanov
Telerik team
answered on 03 Jun 2014, 11:22 AM
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.

 
Tags
Map
Asked by
Sergey
Top achievements
Rank 1
Answers by
Sergey
Top achievements
Rank 1
Hristo Germanov
Telerik team
Share this question
or