[erledigt] Popup bekomme keine CloseBox hin??

Hallo,

ich lege Marker über eine Textdatei an und
Öffne bei Klick ein Popup. Obwohl die Option auf TRUE steht, wird keine
Closebox angezeigt???

beim MapDraw();

var lGrenzeGpx = new OpenLayers.Layer.GML("test", "./Daten/test_2.txt",{format: OpenLayers.Format.Text, styleMap: styleMapp,
                                     projection: map.displayProjection}); 
        map.addLayer(lGrenzeGpx);    
            
        var select = new OpenLayers.Control.SelectFeature(lGrenzeGpx);
           
             lGrenzeGpx.events.on({
                    "featureselected": onFeatureSelect,
                     "featureunselected": onFeatureUnselect
                 });
        
                map.addControl(select);
                select.activate();

und hier der EventCode mit Popup-Ersteller

function onPopupClose(evt) {
    // 'this' is the popup.
    selectControl.unselect(this.feature);
}
function onFeatureSelect(evt) {
    feature = evt.feature;
    popup = new OpenLayers.Popup.FramedCloud("featurePopup",
                             feature.geometry.getBounds().getCenterLonLat(),
                             new OpenLayers.Size(100,100),
                             "<h2>"+feature.attributes.title + "</h2>" +
                             feature.attributes.description,
                             null, true, onPopupClose);  // HIER CloseBox ist auf TRUE und CallBack Funktion ist festgelegt!!!!!!!!!!
                                                                    // trotzdem läuft es nicht !!!
    feature.popup = popup;
    popup.feature = feature;
    popup.autoSize=true;
    popup.updateSize();
    map.addPopup(popup);
}
function onFeatureUnselect(evt) {
    feature = evt.feature;
    if (feature.popup) {
        popup.feature = null;
        map.removePopup(feature.popup);
        feature.popup.destroy();
        feature.popup = null;
    }
}

Hat jemand eine Idee warum es nicht läuft ??

Gruß
Byte

Tja,

ich benutze die Karte offline = lokal.

Man muss zusätzlich zum Verzeichnis >> img
auch noch das Verzeichnis >>theme
kopieren, dann gehts auch…

Gruß

Byte