Unplanned
Last Updated: 20 Nov 2017 15:42 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: Map
Type: Bug Report
0
Error:

System.ArgumentException was unhandled
  HResult=-2147024809
  Message=An item with the same key has already been added.
  Source=mscorlib
  StackTrace:
       at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at Telerik.WinControls.UI.DbfHeader.CreateExtendedPropertySet()
       at Telerik.WinControls.UI.DbfReader..ctor(Stream stream, ExtendedPropertySet propertySet, Encoding encoding)
       at Telerik.WinControls.UI.ShapeFileReader.Read(ShapeFileReaderParameters parameters)
       at _1125357MapShapeFiles.RadForm1..ctor() in d:\Projects\1125357MapShapeFiles\RadForm1.cs:line 37
       at _1125357MapShapeFiles.Program.Main() in d:\Projects\1125357MapShapeFiles\Program.cs:line 17
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 
Unplanned
Last Updated: 04 Mar 2020 15:28 by ADMIN
Add a MapPath object to a layer of RadMap and zoom in to the last possible level. 
An exception is thrown.
public partial class RadForm1 : RadForm
{
    private BingRestMapProvider bingProvider;

    public RadForm1()
    {
        this.InitializeComponent();
        this.SetupBingProvider();
        this.SetupLayers();

        this.ImportTestItem();
        this.radMapViewer.MapElement.MiniMapElement.EnableZooming = true;
    }

    private void SetupBingProvider()
    {
        string bingKey = "Your Bing Key";

        this.bingProvider = new BingRestMapProvider();
        this.bingProvider.UseSession = true;
        this.bingProvider.BingKey = bingKey;
        this.bingProvider.ImagerySet = Telerik.WinControls.UI.Map.Bing.ImagerySet.Aerial;
        LocalFileCacheProvider cache = new LocalFileCacheProvider(@"..\..\cache");
        this.bingProvider.CacheProvider = cache;
        this.bingProvider.ProviderUpdated += this.BingProvider_ProviderUpdated;
        this.radMapViewer.Providers.Add(this.bingProvider);

        this.bingProvider.InitializationComplete += this.BingProvider_InitializationComplete;
    }

    private void BingProvider_ProviderUpdated(object sender, EventArgs e)
    {
        // Workaround
        this.bingProvider.MaxZoomLevel = 20;
    }

    private void BingProvider_InitializationComplete(object sender, EventArgs e)
    {
        this.radMapViewer.BringIntoView(new PointG(42.698559196991135, 23.320803862212352), 20);
    }

    private void SetupLayers()
    {
        MapLayer modelLayer = new MapLayer("Models");
        this.radMapViewer.Layers.Add(modelLayer);
    }

    public void ImportTestItem()
    {
        Collection<Collection<PointG>> paths = new Collection<Collection<PointG>>();
        var points = new Collection<PointG>();
        paths.Add(points);
        points.Add(new PointG(42.698559196991135, 23.320803862212352));
        points.Add(new PointG(42.698927962901238, 23.319237221916447));
        points.Add(new PointG(42.698928093965123, 23.319236667248555));
        points.Add(new PointG(42.698928095639218, 23.319236660952237));
        points.Add(new PointG(42.698661960692946, 23.319152714625682));
        points.Add(new PointG(42.698661958997257, 23.319152719880927));
        points.Add(new PointG(42.698661126454983, 23.319156258531189));
        points.Add(new PointG(42.698366706433447, 23.320407248233786));
        points.Add(new PointG(42.698559196991135, 23.320803862212352));

        MapPath mapVisual = new MapPath(paths);
        mapVisual.BorderColor = Color.Blue;
        mapVisual.BackColor = Color.Empty;
        mapVisual.BorderWidth = 3;

        this.radMapViewer.Layers["Models"].Add(mapVisual);
    }
}
Unplanned
Last Updated: 05 Jun 2020 06:52 by ADMIN
Created by: Yariv
Comments: 0
Category: Map
Type: Bug Report
0

There is a noticeable delay after moving the mouse while panning the map. After making a comparison with Open Street Maps and a local provider, it seems that the local provider is slightly slower than the OSM provider. Please refer to the attached gif file. 

After profiling the project, it seems that Image.FromFile for loading the required tile takes most of the time:

With the OSM the tile is loaded by using Image.FromStream and it takes 3 times less time:

Declined
Last Updated: 16 Feb 2021 13:17 by ADMIN

Run the attached project and follow the steps in the gif file. As a result the following exception occurs:

System.IO.IOException: 'The process cannot access the file 't_0_0_1.png' because it is being used by another process.'

Completed
Last Updated: 15 Apr 2021 13:36 by ADMIN
Release R2 2021

Run the attached project.
Expected: 
10 points on each row.
Actual:
There is a seemingly random number of points on each row:

Completed
Last Updated: 12 Jul 2021 07:37 by ADMIN
Release R3 2021 (LIB 2021.2.712)
Please run the attached sample project and follow the steps from the gif file. You will notice that for ZoomLevel=19, clicking the pin shifts it on the left.
Completed
Last Updated: 12 Jul 2021 07:37 by ADMIN
Release R3 2021 (LIB 2021.2.712)

Hello,

on a german Windows, when searching with the bingmapsprovider for "München",

the tooltip on the Pin doesn't shows the ü in the correct way.

 

Unplanned
Last Updated: 05 May 2021 12:15 by ADMIN
Created by: Manoj
Comments: 0
Category: Map
Type: Feature Request
0
https://en.wikipedia.org/wiki/GPS_Exchange_Format
Completed
Last Updated: 09 Jun 2021 14:23 by ADMIN
Release R2 2021 SP1
Created by: Ketan
Comments: 3
Category: Map
Type: Feature Request
0

Hi,

An exception is thrown while adding layers without name. (System.InvalidOperationException: 'A layer with the same Name already exists in the collection.')

i.e

            var layer1 = new MapLayer();
            var layer2 = new MapLayer();

            map.Layers.Add(layer1);
            map.Layers.Add(layer2);

The simple fix is to always pass a unique name, but it must work like say DataTable.Columns.Add(); (which internally generates unique name)

Thanks

Completed
Last Updated: 31 May 2021 07:44 by ADMIN
Release R2 2021 SP1

Use the custom implementation in the following KB article: https://docs.telerik.com/devtools/winforms/knowledge-base/radmap-export-to-an-image?_ga=2.41263138.1402359144.1621138970-937174403.1607349180

The pins are successfully exported in version 2021.1.204:

After upgrading to version 2021.2.511, the pins are not exported anymore:

  
Completed
Last Updated: 15 Jun 2021 10:26 by ADMIN
Release R2 2021 SP1
GeoCoordinate class in System.Device.Location namespace does implement IEquatable<T> interface.

So it might be useful if PointG (and PointL, RectangleG, RectangleL, SizeG, SizeL) value types also implement it. There are so many articles about its advantage. The reason is I want to use LINQ queries on a PointG collection, GroupBy, Distinct, etc... so it will be better optimized.

Please refer.
https://medium.com/@semuserable/c-journey-into-struct-equality-comparison-deep-dive-9693f74562f1 

The Epilogue part specifically.
Completed
Last Updated: 09 Jun 2021 14:23 by ADMIN
Release R2 2021 SP1

Hi,

Please refer attached screen.

In a specific use case, it was required to add MapPins to a MapLayer, and later MapLayer to be added to a RadMap, and this exception.

Thanks

Completed
Last Updated: 12 Jul 2021 07:37 by ADMIN
Release R3 2021 (LIB 2021.2.712)
The RadMap.Layers collection offers several overloads for the HitTest method:

- HitTest(PointG location)
- HitTest(PointL point)
- HitTest(Point location)

However, if the layer is not visible, its IsVisible property is set to false, the HitTest(PointL point) will not return the clicked pin, but the HitTest(PointG point) method will return it. This behavior is not consistent and all overloads should consider whether the layer is visible or not.
Completed
Last Updated: 12 Jul 2021 07:37 by ADMIN
Release R3 2021 (LIB 2021.2.712)
If you apply 'left' padding to a callout, it wrongly applies to the right side as well.
Duplicated
Last Updated: 07 Jul 2021 10:58 by ADMIN
Created by: Ketan
Comments: 2
Category: Map
Type: Bug Report
0

Hi,

Please refer. below code...

        void ShowInfoUI()
        {
            var padding = new Padding(0);
            var font = new Font(Font.FontFamily, 8.0f);

            if (T.InfoLayer.IsVisible = cbShowInfo.Checked)
            {
                var overlays = T.PinsLayer.Overlays;

                for (int i = 0; i < overlays.Count; i++)
                {
                    var callout = new MapCallout(overlays[i]) { Font = font, Padding = padding, Text = "1234567", Distance = 5 };

                    T.InfoLayer.Add(callout);
                }
            }
        }

There are 2 layers, InfoLayer (MapCallout) and PinsLayer (MapPins). cbShowInfo controls if MapCallout tobe shown.

If the 'Text' length is less than 8 wrapping happens, and not otherwise. Usually, If Text length is more then wrapping should happen.

Thanks

Completed
Last Updated: 26 Apr 2022 13:22 by ADMIN
Release R2 2022
This exception occurs in Net 6. When we have applied LocalFileCacheProvider and there is one file in the cache folder, starting the app will throw the ArgumentOutOfRangeException. A possible solution here is to check if there is one file inside the folder and remove it if there is such.
Unplanned
Last Updated: 13 Aug 2020 12:02 by ADMIN

Please refer to the attached gif file. The sample project together with the sample files of the local provider can be downloaded here: https://1drv.ms/u/s!AnnV2HsINMD_yxDEY2iOWHXn5V9_?e=VurA0N 

1 2 3