File

src/ui/map/smart-map.component.ts

Extends

AbstractFormChild

Implements

OnInit OnChanges AfterViewInit OnDestroy

Metadata

Index

Properties
Methods
Inputs
Accessors

Constructor

constructor(dataSourceRegistry: DataSourceRegistry, smartConfig: SmartConfig, elementRef: ElementRef, renderer: Renderer2, errorHandler: SmartErrorHandlerService, changeDetector: ChangeDetectorRef, injector: Injector)
Parameters :
Name Type Optional
dataSourceRegistry DataSourceRegistry No
smartConfig SmartConfig No
elementRef ElementRef No
renderer Renderer2 No
errorHandler SmartErrorHandlerService No
changeDetector ChangeDetectorRef No
injector Injector No

Inputs

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

Methods

Public handleLayoutChange
handleLayoutChange(styling: any)
Parameters :
Name Type Optional
styling any No
Returns : void
Public setHidden
setHidden(isHidden: boolean)

Sets the hidden state of the Google Map iframe and triggers change detection.

Parameters :
Name Type Optional Description
isHidden boolean No
  • A boolean indicating whether the Google Map iframe should be hidden.
Returns : void
Public notifyLoadingFinished
notifyLoadingFinished(objectName: string)

Notifies the parent Smart Form that this form child has finished loading

Parameters :
Name Type Optional
objectName string No
Returns : void

void

Properties

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

Accessors

dataSource
getdataSource()

Gets the data source for the map component.

<!--
**************************************************************************
* 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;
    }
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""