Skip to content

Commit

Permalink
fix(queryFormat): fix layer's queryFormat htmlgml2 (#620)
Browse files Browse the repository at this point in the history
* fix(queryFormat): fix HTMLGML2 query format

* WIP

* WIP
  • Loading branch information
PhilippeLafreniere18 authored Apr 30, 2020
1 parent 7343cd7 commit 6023480
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/geo/src/lib/catalog/shared/catalog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export class CatalogService {
crossOrigin: catalog.setCrossOriginAnonymous ? 'anonymous' : undefined,
queryFormat: configuredQueryFormat,
queryHtmlTarget:
configuredQueryFormat === QueryFormat.HTML ? 'iframe' : undefined,
configuredQueryFormat === (QueryFormat.HTML || QueryFormat.HTMLGML2) ? 'iframe' : undefined,
optionsFromCapabilities: true
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
</tbody>
</table>

<iframe *ngIf="feature && isObject(feature.properties) && feature.properties.target === 'iframe'" [src]='htmlSanitizer(feature.properties.url)'></iframe>
<iframe *ngIf="feature && isObject(feature.properties) && feature.properties.target === 'iframe'" [src]="htmlSanitizer(feature.properties.url)"></iframe>
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { SearchSource } from '../../search/shared/sources/source';
styleUrls: ['./feature-details.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})

export class FeatureDetailsComponent {
private state: ConnectionState;

Expand Down
2 changes: 1 addition & 1 deletion packages/geo/src/lib/search/shared/sources/ilayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class ILayerSearchSource extends SearchSource implements TextSearch {
}
}

if (queryFormat === QueryFormat.HTML) {
if (queryFormat === QueryFormat.HTML || QueryFormat.HTMLGML2) {
queryHtmlTarget = 'iframe';
}
}
Expand Down

0 comments on commit 6023480

Please sign in to comment.