function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Niraj GananiNiraj Ganani 

Leaflet map error in lightening component

 I am using leaflet library to show accounts on map.
I have able to show it but after clicking on popup of marker of location. it throws error


when I try to click on multiple markers after that if I zoom in / zoom out the map it throws the error as:
Error while searching functionality in lightening component not getting what is the issue
Try refreshing the page. If that doesn't do the trick, give your Salesforce administrator the following error ID, and describe what you were trying to accomplish.
Error ID: 1502784564
This page has an error. You might just need to refresh it. [Cannot read property '_latLngToNewLayerPoint' of null]


Can anyone help me to out of this.
Dmitry KardashovDmitry Kardashov

Hello Niraj,

I think error appears because Locker Service is enabled. Please see https://developer.salesforce.com/blogs/developer-relations/2017/02/lockerservice-lightning-container-third-party-libraries-lightning-components.html