This is not a complete solution for challenges, but will guide you when you are stuck! Read the superbadge page completely. Most of the challenges are interlinked and the text is not in the same order of the challenge.
For other challenges, visit the Guide to Challenges.
Challenge 6: Customize the component boatMap
boatMap component that was installed as part of the installed package.
- Declare the three constants mentioned in the superbadge page, import the basics.
- Initialize the
wiremethod, and wire the
- Add subscribe method to the connectedCallback (Read the doc: Lightning Message Service)
- Remember to add Application Scope (events dispatched from anywhere in the application)
subscribeMCmethod. Do not add the subscription code separately. (Otherwise challenge doesn’t validate 😢)
- Push the Latitude and longitude to the
mapMarkersvariable in the
If you get this error:
Make sure you have getter and setter ready for the