This question is locked. New answers and comments are not allowed.
Hi,
I am trying to write a Custom Map provider with a map on Arcgis website as map source. But I am unable to do so. Please see my code below:
The map is not visible at runtime. What am I missing here?
Can you please provide a sample with a custom provider?
Thanks.
~Dipti
I am trying to write a Custom Map provider with a map on Arcgis website as map source. But I am unable to do so. Please see my code below:
namespace ArcGISMap { public class ArcGISServerMapProvider : TiledProvider { public ArcGISServerMapProvider() : base() { ArcGISServerMapSource source = new ArcGISServerMapSource(); this.MapSources.Add(source.UniqueId, source); } public override ISpatialReference SpatialReference { get { return new MercatorProjection(); } } } public class ArcGISServerMapSource : TiledMapSource { public ArcGISServerMapSource() : base(1, 20, 256, 256) { } public override void Initialize() { this.RaiseIntializeCompleted(); } protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY) { int zoomLevel = ConvertTileToZoomLevel(tileLevel); return new Uri(url); } } }<Grid x:Name="LayoutRoot" Background="White"> <telerik:RadMap x:Name="RadMap1"> <telerik:RadMap.Provider> <arcgis:ArcGISServerMapProvider></arcgis:ArcGISServerMapProvider> </telerik:RadMap.Provider> </telerik:RadMap> </Grid>The map is not visible at runtime. What am I missing here?
Can you please provide a sample with a custom provider?
Thanks.
~Dipti