• JMap.MouseOver.renderForFeaturesAtLocation

    Get the feature selection at the location, and process the mouseover for it, and render it inside the div of your choice.

    It's like clicking on the map at a location, but instead of displaying on a popup, you can render it on your own div.

    Parameters

    • containerId: string

      The div id where to display the mouseover content

    • location: JLocation

      The location on the map where you want to select features and display mouseover for

    Returns boolean

    true if we displayed content in the div, false if no mouseover found for any layer

    Throws

    Error if div doesn't exist in the DOM, or location format is not good

    Example

    // Display in the div id="my-custom-div" the content of mouseover
    // if features has been found at the location x=34.44 and y=23.44
    JMap.MouseOver.renderForFeaturesAtLocation("my-custom-div", { x: 34.44, y: 23.44 })