• JMap.MouseOver.openPopupForSelection

    Displays a standard MouseOver popup, based on a selection of features. You can specify an optional location to display the popup on the map, as well as an option to specify if the map shoud pan to the popup's location

    Parameters

    Returns void

    Throws

    Error if the user-defined location is invalid or if the pan-to option is not a boolean

    Example

    // display a MouseOver popup using the current selection and a custom location
    const currentSelection = JMap.Map.Selection.getSelectedFeatures()
    const myLocation = {x:-73, y:46}
    JMap.MouseOver.openPopupForSelection({ selection: currentSelection, location: myLocation, panToLocation: true })