diff --git a/packages/context/src/lib/share-map/share-map.module.ts b/packages/context/src/lib/share-map/share-map.module.ts index f727afc112..2762b6d7e6 100644 --- a/packages/context/src/lib/share-map/share-map.module.ts +++ b/packages/context/src/lib/share-map/share-map.module.ts @@ -13,6 +13,7 @@ import { IgoLanguageModule } from '@igo2/core'; import { ShareMapComponent } from './share-map/share-map.component'; import { ShareMapUrlComponent } from './share-map/share-map-url.component'; import { ShareMapApiComponent } from './share-map/share-map-api.component'; +import { IgoCustomHtmlModule } from '@igo2/common'; @NgModule({ imports: [ @@ -25,7 +26,8 @@ import { ShareMapApiComponent } from './share-map/share-map-api.component'; MatFormFieldModule, MatInputModule, MatButtonModule, - IgoLanguageModule + IgoLanguageModule, + IgoCustomHtmlModule ], exports: [ShareMapComponent, ShareMapUrlComponent, ShareMapApiComponent], declarations: [ShareMapComponent, ShareMapUrlComponent, ShareMapApiComponent] diff --git a/packages/context/src/lib/share-map/share-map/share-map-url.component.html b/packages/context/src/lib/share-map/share-map/share-map-url.component.html index c361e0a410..4532153eda 100644 --- a/packages/context/src/lib/share-map/share-map/share-map-url.component.html +++ b/packages/context/src/lib/share-map/share-map/share-map-url.component.html @@ -16,6 +16,7 @@

+

{{'igo.context.shareMap.included' | translate}}

  • {{'igo.context.shareMap.context' | translate}}
  • @@ -32,6 +33,10 @@

    {{'igo.context.sh
  • {{'igo.context.shareMap.filterOgc' | translate}}
  • {{'igo.context.shareMap.filterTime' | translate}}
+
+ +
diff --git a/packages/context/src/lib/share-map/share-map/share-map-url.component.scss b/packages/context/src/lib/share-map/share-map/share-map-url.component.scss index 962afe5fd5..157a83fec0 100644 --- a/packages/context/src/lib/share-map/share-map/share-map-url.component.scss +++ b/packages/context/src/lib/share-map/share-map/share-map-url.component.scss @@ -26,3 +26,7 @@ mat-form-field { text-align: center; padding-top: 10px; } + +igo-custom-html.shareCustomPadding { + padding: 0px; +} diff --git a/packages/context/src/lib/share-map/share-map/share-map-url.component.ts b/packages/context/src/lib/share-map/share-map/share-map-url.component.ts index 68d83c1842..3a309c9b30 100644 --- a/packages/context/src/lib/share-map/share-map/share-map-url.component.ts +++ b/packages/context/src/lib/share-map/share-map/share-map-url.component.ts @@ -1,7 +1,7 @@ import { AfterViewInit, Component, Input, OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core'; import { Clipboard } from '@igo2/utils'; -import { MessageService, LanguageService } from '@igo2/core'; +import { MessageService } from '@igo2/core'; import type { IgoMap } from '@igo2/geo'; import { ShareMapService } from '../shared/share-map.service'; @@ -23,7 +23,6 @@ export class ShareMapUrlComponent implements AfterViewInit, OnInit, OnDestroy { }; constructor( - private languageService: LanguageService, private messageService: MessageService, private shareMapService: ShareMapService, private cdRef: ChangeDetectorRef @@ -54,12 +53,7 @@ export class ShareMapUrlComponent implements AfterViewInit, OnInit, OnDestroy { copyTextToClipboard(textArea) { const successful = Clipboard.copy(textArea); if (successful) { - const translate = this.languageService.translate; - const title = translate.instant( - 'igo.context.shareMap.dialog.copyTitle' - ); - const msg = translate.instant('igo.context.shareMap.dialog.copyMsg'); - this.messageService.success(msg, title); + this.messageService.success('igo.context.shareMap.dialog.copyMsg', 'igo.context.shareMap.dialog.copyTitle'); } } } diff --git a/packages/context/src/locale/en.context.json b/packages/context/src/locale/en.context.json index 802bae2c7b..b7c6da59ef 100644 --- a/packages/context/src/locale/en.context.json +++ b/packages/context/src/locale/en.context.json @@ -161,6 +161,7 @@ "copyMsg": "Link copied to clipboard", "copyTitle": "Link" }, + "htmlClarifications": "", "errorTitle": "Share Map error", "placeholderLink": "Link", "included": "Included in shared URL :", diff --git a/packages/context/src/locale/fr.context.json b/packages/context/src/locale/fr.context.json index 0ec594caf1..97e881e248 100644 --- a/packages/context/src/locale/fr.context.json +++ b/packages/context/src/locale/fr.context.json @@ -161,6 +161,7 @@ "copyMsg": "Lien copiƩ", "copyTitle": "Lien" }, + "htmlClarifications": "", "errorTitle": "Erreur lors du partage", "placeholderLink": "Lien", "included": "Inclus dans le lien de partage :",