Posts - Mapbox - Dynamic Map
In this lecture we will connect all the dots and use the Mapbox API to geocode our Post's location into a set of geocoordinates that can then be stored in the database and rendered as a marker on a map in our show view.
Resources:
Resources:
- Review the new EJS syntax that we used <%-
- Review the JSON.stringify() method that we used to turn our post object (local variable from the server) into a string, that could then be translated into an object in our client-side JS
Need Help?
- Join our community Discord channel, here