[GIS] Open popups in a fixed position with Leaflet

leafletpopup

I have create my map with Leaflet exactly how I want it (with my markers and externals links).

I would like to have the popup always fixes in the top right hand corner (for an example).

Is there any way to fix the popup's location ?

Best Answer

You could for example use a div-Container and a click-Event instead of the default popups:

HTML:

<div id="info"></div>

Javascript:

onEachFeature: function (feature, layer) {
        //layer.bindPopup(feature.properties.name);

        layer.on('click', function (e) {
            document.getElementById("info").innerHTML = feature.properties.name;
        });
    }

http://jsfiddle.net/expedio/z1nw3pt4/