Update examples/quick-start.html
This commit is contained in:
parent
d507cfb6c0
commit
0b4457e626
@ -98,15 +98,16 @@
|
||||
<p>Before writing any code for the map, you need to do the following preparation steps on your page:</p>
|
||||
|
||||
<ol>
|
||||
<li><a href="../download.html">Download Leaflet</a> and put the contents of the <code>dist</code> folder somewhere in your project directory</li>
|
||||
<li>Include Leaflet CSS files in the head section of your document:
|
||||
<pre><code class="html"><link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.css" />
|
||||
<pre><code class="html"><link rel="stylesheet" href="[path-to-dist]/leaflet.css" />
|
||||
<!--[if lte IE 8]>
|
||||
<link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.ie.css" />
|
||||
<link rel="stylesheet" href="[path-to-dist]/leaflet.ie.css" />
|
||||
<![endif]--></code></pre>
|
||||
</li>
|
||||
|
||||
<li>Include Leaflet JavaScript file somewhere on the page (preferably before <code>body</code> close tag):
|
||||
<pre><code class="html"><script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script></code></li>
|
||||
<pre><code class="html"><script src="[path-to-dist]/leaflet.js"></script></code></li>
|
||||
|
||||
<li>Put a <code>div</code> element with a certain <code>id</code> where you want your map to be (making sure it has defined height):
|
||||
<pre><code class="html"><div id="map" style="height: 200px"></div></code></pre></li>
|
||||
|
Loading…
Reference in New Issue
Block a user