Browse Source

add indents to fix renumbering problem

pull/199/head
rmglennon 8 years ago
parent
commit
14479369fe
  1. 6
      add-search-to-a-map.md

6
add-search-to-a-map.md

@ -116,16 +116,14 @@ To display a Leaflet map on a page, you need a `<div>` element, which is a conta
<div id='map'></div> <div id='map'></div>
``` ```
3. Directly after the `<div>`, add this JavaScript code within a `<script>` tag to set the API key for the map. Use your own API key substituted for the placeholder text of `your-mapzen-api-key`. 3. Directly after the `<div>`, add this JavaScript code within a `<script>` tag to set the API key for the map.
```js ```js
<script> <script>
L.Mapzen.apiKey = "your-mapzen-api-key"; // paste your actual API key here L.Mapzen.apiKey = "your-mapzen-api-key";
</script> </script>
``` ```
The `your-mapzen-api-key` text is the Mapzen API key; paste your own API key inside the single quotes. You can get an API key by following the steps in the Mapzen [developer overview](https://mapzen.com/documentation/overview/).
4. Inside the same `<script>` tag, and after the code you just added for the API key, initialize a map. 4. Inside the same `<script>` tag, and after the code you just added for the API key, initialize a map.
```html ```html

Loading…
Cancel
Save