1

I have a problem with dialog box made with jQuery Mobile on OpenLayers. I want to make a popup box instead of a dialog box, but when i click the point the info for the point appears at different window instead of appearing on the map. My code is:

js:

$('#popup').live('pageshow',function(event, ui){
        var li = "";
        for(var attr in selectedFeature.attributes){
            li += "<li><div style='width:25%;float:left'>" + attr + "</div><div style='width:75%;float:right'>" 
            + selectedFeature.attributes[attr] + "</div></li>";     
        }
          //alert("test");

        $("ul#details-list").empty().append(li).listview("refresh");
    });
  • you mean you want to reposition popup? – Omar Oct 2 '14 at 21:51
  • Yes..i want popup box appear on the map..instead appear different page... – wan Oct 5 '14 at 9:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.