While using tools may be easier and more productive, it's always important to understand the fundamentals and be able to write something by hand. We'll practice by adding a new location to our GeoJSON document by hand!
Resources
Instructor: [0:00] Here I have a marker for a restaurant in DC. What if I wanted to add another marker manually? To get started, let's first copy that feature from before where we can add it right below.
[0:07] The biggest difference for this feature is we're going to have different coordinates. Say, we wanted our second restaurant to be HomeSlyce DC. Similar before, we can right click that area and get what's here. We can copy and paste the latitude and longitude. This time if you noticed that the latitude and longitude aren't in the same order as they were before.
[0:21] Different mapping interfaces use different inputs for latitude and longitude. While one might be latitude and longitude, you might have another that's longitude and latitude. We'll want to make sure that we're matching these values up, so we're using the right latitude and longitude in all the right spots.
[0:34] Now that we have our correct second location, we can see that we have two markers on the map.
Member comments are a way for members to communicate, interact, and ask questions about a lesson.
The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io
Be on-Topic
Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.
Avoid meta-discussion
Code Problems?
Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context
Details and Context
Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!