From a77f492f08b70d80c0f2887e5aee62a91c5c96e4 Mon Sep 17 00:00:00 2001 From: rmglennon Date: Wed, 11 Nov 2015 14:44:08 -0800 Subject: [PATCH 1/6] add some text on html elements, api keys --- leaflet-geocoder.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/leaflet-geocoder.md b/leaflet-geocoder.md index 35f8e50..3599fa3 100644 --- a/leaflet-geocoder.md +++ b/leaflet-geocoder.md @@ -2,9 +2,9 @@ [Mapzen Search](https://mapzen.com/projects/search) is a modern, geographic search service based entirely on open-source tools and powered entirely by open data. You might use this functionality in any app that has a geographic component, including ones that deliver goods, locate hotels or venues, or even provide local weather forecasts. -Through a process known as [geocoding](search.md), Mapzen Search allows you to enter an address or the name of a landmark or business, and then it translates the result in to the geographic coordinates for mapping. Mapzen Search is built on [Pelias](https://github.com/pelias), an open-source geocoding project. +Through a process known as [geocoding](https://en.wikipedia.org/wiki/Geocoding), Mapzen Search allows you to enter an address or the name of a landmark or business, and then it translates the result in to the geographic coordinates for mapping. Mapzen Search is built on [Pelias](https://github.com/pelias), an open-source geocoding project. -In this walkthrough, you will learn how to make a map with a search box that allows you to enter addresses and place names and locate them on a map. To complete the tutorial, you should have some familiarity with HTML and JavaScript, although all the source code is provided. You will need an [API key](https://mapzen.com/developers) (which is provided for you at MaptimeOAK) to use Mapzen Search, which requires a GitHub account for authorization. You can use any text editor and operating system, but must maintain an Internet connection while you are working. The tutorial should take about 30 minutes to complete. +In this walkthrough, you will learn how to make a map with a search box that allows you to enter addresses and place names and locate them on a map. To complete the tutorial, you should have some familiarity with HTML and JavaScript, although all the source code is provided. ## Download and install the dependencies @@ -38,6 +38,8 @@ The geocoding-tutorial folder contains two HTML files: `index.html` is the file ``` + These form the basic structure of an HTML document. `` goes at the top of every HTML page and indicates that it is written for HTML5, and the `` tags tell your browser that the content is HTML. The `` tag contains the title for the page and other metadata about the page, while the `` is where you add the code and the rest of the content on your page. There are many [web tutorials](http://www.w3schools.com/html/default.asp) available to help you experiment with and learn more about building HTML documents and the tags in them. + 2. In the `` tag, add a title, such as `My Geocoding Map`. 3. On the next line, add a metadata tag so you can properly display diacritics and characters from different languages. ```html @@ -75,8 +77,8 @@ Cascading style sheet (CSS) files style a webpage, including layout and fonts, a 2. In the `` section, immediately after the lines you added for Leaflet, add references to the geocoder's CSS and JavaScript files. These files are from the zipped file you copied to your machine. ```html - - + + ``` 3. Save your edits and refresh the browser. The webpage should still appear empty because you have not added any code to interact with these references. @@ -91,8 +93,8 @@ After adding these, your index.html file should look something like this. - - + + @@ -151,8 +153,8 @@ Your index.html should look something like this: - - + +