1. 34
    Manually Add a New Restaurant Location Feature to the GeoJSON Document
    37s

Manually Add a New Restaurant Location Feature to the GeoJSON Document

Colby Fayock
InstructorColby Fayock
Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 4 years ago

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

Click here for exercise instructions

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.

egghead
egghead
~ 12 minutes ago

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

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

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!

Markdown supported.
Become a member to join the discussionEnroll Today