Update quick-start.md
Corrects the links in the code block (was using markdown syntax within the code block)
This commit is contained in:
parent
6ebc1c83c0
commit
7d62cfc41f
@ -54,8 +54,8 @@ Next we'll add a tile layer to add to our map, in this case it's a Mapbox Street
|
||||
<pre><code class="javascript">L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {
|
||||
attribution: 'Map data &copy; <span class="text-cut" data-cut="[…]"><a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a></span>',
|
||||
maxZoom: 18,
|
||||
id: '[your.mapbox.project.id](https://www.mapbox.com/projects/)',
|
||||
accessToken: '[your.mapbox.public.access.token](https://www.mapbox.com/account/apps/)'
|
||||
id: '<a href="https://www.mapbox.com/projects/">your.mapbox.project.id</a>',
|
||||
accessToken: '<a href="https://www.mapbox.com/account/apps/">your.mapbox.public.access.token</a>'
|
||||
}).addTo(map);</code></pre>
|
||||
|
||||
Make sure all the code is called after the `div` and `leaflet.js` inclusion. That's it! You have a working Leaflet map now.
|
||||
|
Loading…
Reference in New Issue
Block a user