Bing Map Print Problem for markers

Hi,

I am using map control. It shows the markers properly on the map. However, when I apply the print method in the documentation, it does not show the map and markers correctly as in the attachment. I have attached pictures to the attachment. I have added the code below. Can you examine the cause of the error?

Thanks.


@{


    var zoom = new Syncfusion.EJ2.Maps.MapsZoomSettings

    {

        Enable = true,

        ZoomFactor = 10,

        MinZoom = 5,

        MaxZoom = 20,

        DoubleClickZoom = true,

        ShouldZoomInitially = true

    };

    var marker = new List<MapsMarker>

    {


        new MapsMarker{Visible=true, DataSource= ViewBag.ShippingAddresses, Width = 20, Height = 20, LatitudeValuePath="Latitude",

                         LongitudeValuePath="Longitude"}

    };


    var cluster = new MapsMarkerClusterSettings

    {

        AllowClustering = true,

        Height = 30,

        Width = 30,

        Shape = Syncfusion.EJ2.Maps.MarkerType.Circle,

        Fill = "#d100d1",

        Opacity = 0.7,

        AllowClusterExpand = true,

        LabelStyle = new MapsFont

        {

            Color = "White"

        }

    };

}


@using Syncfusion.EJ2.Maps;

@using Syncfusion.EJ2;


<button class="btn btn-dark" id="print">Print</button>

<ejs-maps id="maps" height="800" width="100%" zoomSettings="zoom" markerClick="markerClick" load="onMapLoad" allowPrint="true" >

    <e-maps-layers>

        <e-maps-layer layerType="Bing" bingMapType="CanvasLight" markerSettings="marker" markerClusterSettings="cluster"

                      key="*bingmap key*"></e-maps-layer>

    </e-maps-layers>

</ejs-maps>


    <script>

        function onMapLoad(args) {

            window.maps = args.maps;

        }

        window.onload = function () {

            document.getElementById("print").onclick = () => {

                window.maps.print();

            };

        };

        function markerClick(args) {

                   }

    </script>



Attachment: MapPageAndPrintImages_3ed67f29.rar

5 Replies 1 reply marked as answer

IR Indumathi Ravi Syncfusion Team March 3, 2022 01:21 PM UTC

Hi John, 

Thank you for contacting Syncfusion support. 

We are able to reproduce the reported issue with the provided code snippet. We have considered this as a defect and logged a defect report for the same. However, we will include the fix for the reported issue in our weekly patch release which is expected to be available by the mid of March 2022. Please find the below feedback link to keep track of the reported issue. 
  

Regards, 
Indumathi R


IR Indumathi Ravi Syncfusion Team March 16, 2022 05:05 PM UTC

Sorry for the inconvenience. 
  
We have not includethe fix for the reported issue in our weekly patch release. However, the fix will be included in our Volume 1 Main Release, which is expected to be available by next week. 
  
Regards, 
Indumathi R. 



JT John Taylor March 16, 2022 10:40 PM UTC

Hi,


Will it be enough for me to just update my syncfusion .net core version in my web application for this development?


Br,



IR Indumathi Ravi Syncfusion Team March 17, 2022 04:58 PM UTC

Hi John, 
Thank you for the update. 
It is enough to update the latest “Syncfusion.EJ2.AspNet.Core” and refer the client side resource(ej2.min.js) through CDN link or local script file in the ASP.NET Core application. For more details, please check the below link. 
We'll let you know once the package is published. 
Regards, 
Indumathi R 



IR Indumathi Ravi Syncfusion Team April 4, 2022 02:34 PM UTC

Hi John,


We have fixed the reported issue “position of markers in Bing Maps while printing is not proper” and it is included in our Essential Studio 2022 Volume 1 Main release v20.1.0.47 that is rolled out and is available for download under the following link.

Essential Studio 2022 Volume 1 Main Release v20.1.0.47 is available for download | Announcements Forums | Syncfusion.


You can also refer the below link in your application to resolve the reported issue.

https://cdn.syncfusion.com/ej2/20.1.47/dist/ej2.min.js


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Regards,

Indumathi R


Marked as answer
Loader.
Up arrow icon