diff --git a/leaflet-geocoder.md b/leaflet-geocoder.md index d72c7d5..528ee76 100644 --- a/leaflet-geocoder.md +++ b/leaflet-geocoder.md @@ -28,7 +28,7 @@ Now that you have downloaded the required dependent files, you are ready to star `index.html` is the file you will be editing, while `index-complete.html` is a completed version that you can use to check your work or review if you need to troubleshoot an error. -Some common text editor applications include Atom, Notepad++, Sublime, as well as the apps that are installed with your operating system, such as Notepad or TextEdit, although they do not provide indentations or code alignments that are availabl in the other apps. If you do use TextEdit, you need to go to the Format menu and click Make Plain Text to use the plain-text version of the file. You should not use an app with any rich formatting, such as Word or Wordpad. +Some common text editor applications include Atom, Notepad++, Sublime. You can use the apps installed with your operating system, such as Notepad or TextEdit, but they do not provide the helpful indentations or code alignments that are available in the other apps. If you do use TextEdit, you must go to the Format menu and click Make Plain Text to use the plain-text version of the file. Do not use an app with any rich formatting, such as Word or Wordpad. 1. From your geocoding-tutorial folder, open index.html in a text editor. It should look like this: @@ -42,8 +42,8 @@ Some common text editor applications include Atom, Notepad++, Sublime, as well a ``` -3. In the `` tag, add a title, such as `My Geocoding Map`. -4. On the next line, add a metadata tag so you can properly display diacritics and characters from different languages. +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 ``` @@ -69,7 +69,7 @@ As you are working, it’s a good idea to save your edits and periodically reloa ## Add references to CSS and JavaScript files -Because you are working with several external cascading style sheet (CSS) and JavaScript files, you need to add references to them in your index.html file. These include style sheets and JavaScript files for Leaflet and the geocoder. You will need to add these into the and sections of the index.html. +Because you are working with several external cascading style sheet (CSS) and JavaScript files, you need to add references to them in your index.html file. These include style sheets and JavaScript files for Leaflet and the geocoder. You will need to add these into the `` and `` sections of the index.html. 1. In index.html, at the bottom of the `` section, add references to the Leaflet CSS and JavaScript files. You are referencing these from a website, rather than from a file on your machine. @@ -128,13 +128,16 @@ To display a Leaflet map on a page, you need a `
` element with an ID value,
``` -3. Immediately after the `
`, add this JavaScript code within a ` ``` + + `L.xxxxx` is a convention used with the Leaflet API. The `setView([37.804146, -122.275045], 16)` sets the center of the map, in decimal degrees, and the zoom level. The map is centered at the Maptime Oakland meeting location, with a zoom level that allows you to see the streets and features of the city. Zoom levels are similar to map scales or resolutions, where a smaller value shows a larger area in less detail, and a larger zoom level value depicts smaller area in great detail. + 4. Within the same `