Activity Forums Salesforce® Discussions What are the functionality of bindPopup and containerPoint in the leaflet?

  • Prachi

    Member
    August 7, 2018 at 1:48 pm

    Hello madhulika,

    Bindpopup binds a popup to the layer with the passed content and sets up the necessary event listeners. If a Function is passed it will receive the layer as the first argument and should return a String or HTMLElement

    syntax : bindPopup(<String|HTMLElement|Function|Popup> content, <Popup options> options?)

    containerPoint Pixel coordinates of the point where the mouse event occured relative to the map сontainer.

    Thanks

  • shariq

    Member
    September 17, 2018 at 11:31 pm

    Hi,

    This is what I found on Leaflet doc -

    bindPopup - It binds a popup to all of the layers at once (likewise with bindTooltip).

    containerPoint  - Pixel coordinates of the point where the mouse event occured relative to the map сontainer.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos