Skip to content

Commit 229b86b

Browse files
committed
GetFeatureInfo: Avoiding the double-loading the displayed info.
1 parent b2475f3 commit 229b86b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/scripts/views/LayerInfoView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@
118118

119119
if ( rsp && rsp.protocol == 'WMS' && rsp.request.type == 'GET' ) {
120120
frame.css('display','block');
121-
frame.attr('src',rsp.request.url);
121+
//frame.attr('src',rsp.request.url);
122+
frame.attr('srcdoc',rsp.data); // HTML5 feature
122123
} else {
123124
frame.css('display','none');
125+
frame.attr('srcdoc','');
124126
frame.attr('src','about:blank');
125127
}
126128

0 commit comments

Comments
 (0)