Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <lightning-map
  2. map-markers={mapMarkers}
  3. markers-title={markersTitle}
  4. list-view=true></lightning-map>
  5.  
  6. import { LightningElement } from 'lwc';
  7.  
  8. export default class LightningExampleMapMultipleMarkers extends LightningElement {
  9. mapMarkers = [
  10. {
  11. location: {
  12. City: "Cap-d'Ail",
  13. Country: 'France',
  14. },
  15.  
  16. icon: 'custom:custom26',
  17. title: "Cap-d'Ail",
  18. },
  19. {
  20. location: {
  21. City: 'Beaulieu-sur-Mer',
  22. Country: 'France',
  23. },
  24.  
  25. icon: 'custom:custom96',
  26. title: 'Beaulieu-sur-Mer',
  27. },
  28. {
  29. location: {
  30. City: 'Sainte-Maxime',
  31. Country: 'France',
  32. },
  33.  
  34. icon: 'custom:custom92',
  35. title: 'Sainte-Maxime',
  36. },
  37. ];
  38. markersTitle = "CΓ΄te d'Azur";
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement