Map crash

Hi,


I am using an ejs map component in my angular app of layer type OSM. In this map I have some dynamic layer and marker additions based on the zoom level. Layer setting is working correctly , but when I am adding marker then the map goes to a hang state and the whole page crashes. I have two different set of markers which will need to set according to the zoom level.


My code sample (both html and ts file) is attached.



Attachment: worldmap_85639d15.zip

5 Replies

IR Indumathi Ravi Syncfusion Team April 7, 2022 07:54 PM UTC

Hi Sreenath,


Thank you for contacting Syncfusion support.


When we analyzed the provided sample, we found out that you are adding markers and layers dynamically in the zoom event of the Maps control. This is not a recommended approach as the zooming of the layers are in progress in the event. So you are facing the hanging issue in the sample application. We can update the layers and markers once the map is zoomed. We have created a sample to demonstrate the same and it can be download from the below link,


https://stackblitz.com/edit/angular-gygxw6-adfsnz?file=app.component.html 


In the above sample, we have added 3 buttons to add layer, remove the markers and layer. When we click on these buttons, there will be no hanging issues. However, we will analyze the reported scenario in the Maps control and update you with further details on April 11, 2022.


Regards,

Indumathi R



IR Indumathi Ravi Syncfusion Team April 12, 2022 03:40 PM UTC

Hi Sreenath,


We made every effort to resolve the reported scenario in the sample itself, but we were unable to do so. So, we have considered this as a defect and logged a defect report for the same. We will include the fix for the reported issue in our weekly patch release which is expected to be available by the end of April 2022. Please find the below feedback link to keep track of the reported issue.


https://www.syncfusion.com/feedback/34134


Regards,

Indumathi R.



IR Indumathi Ravi Syncfusion Team May 3, 2022 12:48 PM UTC

Hi Sreenath,


Sorry for the inconvenience caused.


The fix for the reported issue was not included in our weekly patch release. The fix for the addLayer() method is complex than we initially estimated. The layer object will contain shape data, markers, bubbles, navigation lines and so on. So, when adding a layer with the addlayer() method, we must ensure that all of the features in the Maps control are stable. However, we will include the fix in our 2022 Volume 2 release, which is expected to be available by the end of June 2022.


Regards,

Indumathi R.



SA Sabari Anand Senthamarai Kannan Syncfusion Team July 20, 2022 10:38 PM UTC

Hi Sreenath,


Sorry for the inconvenience caused.


We are still working in improving the "addLayer" method in the EJ2 Maps control. So the fix is not included in our latest patch releases. The fix is more complex than we initially estimated. The application crash is found when marker clustering is enabled in the layer to be added. So, we are working further to improve the method in all the scenarios. However, we will include the fix in 2022 Volume 2 SP release which is expected to be available by the start of August 2022.


Regards,

Sabari Anand



IR Indumathi Ravi Syncfusion Team August 8, 2022 07:09 PM UTC

Hi Sreenath,

 

We have resolved the reported issue “Maps crash when adding a layer and removing a layer during the zoom event” and it is included in our Essential Studio 2022 Volume 2 SP release v20.2.0.43 which is rolled out and is available for download under the following link.

 

Essential Studio 2022 Volume 2 Service Pack Release v20.2.0.43 is available for download | Announcements Forums | Syncfusion

 

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.


Loader.
Up arrow icon