Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <lightning-map
- map-markers={mapMarkers}
- markers-title={markersTitle}
- list-view=true></lightning-map>
- import { LightningElement } from 'lwc';
- export default class LightningExampleMapMultipleMarkers extends LightningElement {
- mapMarkers = [
- {
- location: {
- City: "Cap-d'Ail",
- Country: 'France',
- },
- icon: 'custom:custom26',
- title: "Cap-d'Ail",
- },
- {
- location: {
- City: 'Beaulieu-sur-Mer',
- Country: 'France',
- },
- icon: 'custom:custom96',
- title: 'Beaulieu-sur-Mer',
- },
- {
- location: {
- City: 'Sainte-Maxime',
- Country: 'France',
- },
- icon: 'custom:custom92',
- title: 'Sainte-Maxime',
- },
- ];
- markersTitle = "CΓ΄te d'Azur";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement