src/clld/web/static/js/clld.js
/**
     * Open a leaflet popup.
     *
     * @param layer  leaflet layer object for which to display the popup.
     * @param html   The content of the popup.
     * @param latlng An optional (lat, lon) pair to anchor the popup.
     * @private
     */
Open a leaflet popup.
@param layer  leaflet layer object for which to display the popup.
@param html   The content of the popup.
@param latlng An optional (lat, lon) pair to anchor the popup.
@private
Open a leaflet popup . @param layer leaflet layer object for which to display the popup . @param html The content of the popup . @param latlng An optional ( lat lon ) pair to anchor the popup . @private
function _openPopup(layer, html, latlng) {
        var map = CLLD.Maps[eid];
        if (!map.popup) {
            map.popup = L.popup();
        }
        latlng = latlng === undefined ? layer.getLatLng() : latlng
        map.popup.setLatLng(latlng);
        map.popup.setContent(html);
        map.map.openPopup(map.popup);
    }
function _openPopup ( layer , html , latlng ) { var map = CLLD . Maps [ eid ] ; if ( ! map . popup ) { map . popup = L . popup ( ) ; } latlng = latlng === undefined ? layer . getLatLng ( ) : latlng map . popup . setLatLng ( latlng ) ; map . popup . setContent ( html ) ; map . map . openPopup ( map . popup ) ; }
Open a leaflet popup.
Open a leaflet popup .