src/ui/map/smart-map.component.ts
OnInit
OnChanges
AfterViewInit
OnDestroy
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | smart-map |
| styleUrls | ./smart-map.component.scss |
| templateUrl | ./smart-map.component.html |
Properties |
|
Methods |
|
Inputs |
Accessors |
constructor(dataSourceRegistry: DataSourceRegistry, smartConfig: SmartConfig, elementRef: ElementRef, renderer: Renderer2, errorHandler: SmartErrorHandlerService, changeDetector: ChangeDetectorRef, injector: Injector)
|
||||||||||||||||||||||||
|
Parameters :
|
| smart-address-fields |
Type : string
|
| smart-address-fields-substitute |
Type : string
|
| smart-data-source |
Type : string
|
| smart-instance-name |
Type : string
|
| smart-location-type |
Type : string
|
| ignoreFlexboxLayout |
Type : boolean
|
| smart-help-text |
Type : string | undefined
|
|
Sets the HelpText value for this form child. |
| smart-object-name |
Type : string
|
|
The object name of the component |
| Public handleLayoutChange | ||||||
handleLayoutChange(styling: any)
|
||||||
|
Parameters :
Returns :
void
|
| Public setHidden | ||||||||
setHidden(isHidden: boolean)
|
||||||||
|
Sets the hidden state of the Google Map iframe and triggers change detection.
Parameters :
Returns :
void
|
| Public notifyLoadingFinished | ||||||
notifyLoadingFinished(objectName: string)
|
||||||
|
Notifies the parent Smart Form that this form child has finished loading
Parameters :
Returns :
void
void |
| hidden |
Type : unknown
|
Default value : true
|
| mapContainer |
Type : ElementRef<HTMLDivElement>
|
Decorators :
@ViewChild('mapContainer', {read: ElementRef})
|
| mapFrame |
Type : ElementRef<HTMLIFrameElement>
|
Decorators :
@ViewChild('mapFrame', {read: ElementRef})
|
| mapUrl |
Type : string
|
| Public injector |
Type : Injector
|
| dataSource |
getdataSource()
|
|
Gets the data source for the map component.
Returns :
AbstractSmartDataSource
|
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************
--------------------------------------------------------------------------
File : smart-map.component.html
Purpose : Template for Smart Map.
Author(s) : Radu Nicoara
Created : Sep 11, 2024
--------------------------------------------------------------------------
-->
<div class="smart-map-container h-100" #mapContainer>
<iframe width="100%" height="99%" #mapFrame class="smart-map-frame" [hidden]="hidden" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
./smart-map.component.scss
/**********************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**********************************************************************/
/*------------------------------------------------------------------------
File : smart-map.component.scss
Purpose : Styles for Smart Map.
Author(s) : Radu Nicoara
Created : Sep 11, 2024
----------------------------------------------------------------------*/
.smart-map-container {
iframe {
border: none;
}
}