Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I don't see why this shouldn't work, but it doesn't.. :P

var popuphtml=""; $.each(persons.persons,function(i,item){
if(item.in_loc == feature.attributes['locid'].substring(8)){ popuphtml +=""+ "" + item.lastName +" " + item.firstName + "
"; } });

          popup = new OpenLayers.Popup.FramedCloud("chicken", 
          feature.geometry.getBounds().getCenterLonLat(),
          null,
          popuphtml,                            
          null,
          true,
          onPopupClose);
          popup.autoSize = true;
          panMapIfOutOfView=true;
          feature.popup = popup;
          map.addPopup(popup);
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.