- Source:
Example
<c-graphql-map-view
object-api-name="Account"
height="400px"
width="100%"
></c-graphql-map-view>
Extends
- LightningElement
Members
cityField :string
API name of the field that contains the city.
Type:
- string
- Source:
countryField :string
API name of the field that contains the country.
Type:
- string
- Source:
height :string
Height of the map component in percent or pixels. The default is 400px.
Type:
- string
- Default Value:
-
- '400px'
- Source:
listView :string
Displays or hides the list of locations. Valid values are visible, hidden, or auto.
Type:
- string
- Default Value:
-
- 'auto'
- Source:
objectApiName :string
If the component is used on a lightning record page, the page sets the property to the API name of the
current object.
Type:
- string
- Source:
postalCodeField :string
API name of the field that contains the postal code.
Type:
- string
- Source:
recordId :string
If the component is used on a lightning record page, the page sets the property to the id of the current
record.
Type:
- string
- Source:
stateField :string
API name of the field that contains the state.
Type:
- string
- Source:
streetField :string
API name of the field that contains the street.
Type:
- string
- Source:
titleField :string
API name of the field that contains the location title. The default is the Name field.
Type:
- string
- Default Value:
-
- 'Name'
- Source:
width :string
Width of the map component in percent or pixels. The default is 100%.
Type:
- string
- Default Value:
-
- '100%'
- Source:
zoomLevel :string
Supports zoom levels from 1 to 20. If not specified, the component calculates a zoom level to accommodate
the markers in the map.
Type:
- string
- Source: