4 Answers, 1 is accepted
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("© <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"));
})
)
.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("© <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
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
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: "© AutoLocal",
errorUrlTemplate:"http://auto.local/Content/img/NotAvalable.png",
},
{
type: "tile",
urlTemplate:"http://auto.local/OSMT/NokiaMap/osm_tiles/#= zoom #/#= x #/#= y #.png",
attribution: "© AutoLocal",
opacity:1,
errorUrlTemplate:"http://auto.local/Content/img/NotAvalable.png",
maxZoom: 16
}
]
});
$("#map").kendoMap({
center: [@Model.Lat, @Model.Lon],
zoom: @Model.Zoom,
layers: [
{
minZoom: 17,
type: "tile",
urlTemplate: "@Model.UrlTemplate",
attribution: "© AutoLocal",
errorUrlTemplate:"http://auto.local/Content/img/NotAvalable.png",
},
{
type: "tile",
urlTemplate:"http://auto.local/OSMT/NokiaMap/osm_tiles/#= zoom #/#= x #/#= y #.png",
attribution: "© AutoLocal",
opacity:1,
errorUrlTemplate:"http://auto.local/Content/img/NotAvalable.png",
maxZoom: 16
}
]
});
0
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
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.