Update quickstart and tutorials for v5

This commit is contained in:
ahocevar
2018-06-22 17:27:50 +02:00
parent 5b105c5601
commit eef39d3d1d
9 changed files with 205 additions and 163 deletions

View File

@@ -5,6 +5,8 @@ layout: doc.hbs
# Quick Start
This primer shows you how to put a simple map on a web page.
## Put a map on a page
Below you'll find a complete working example. Create a new file, copy in the contents below, and open in a browser:
@@ -54,6 +56,8 @@ To include a map a web page you will need 3 things:
### Include OpenLayers
**Caveat:** In production, it is not recommended to include dependencies as script tag. Instead, we recommend bundling the application together with its dependencies, as explained in the [Building an OpenLayers Application](./tutorials/bundle.html) tutorial.
```xml
<script src="https://openlayers.org/en/{{ latest }}/build/ol.js" type="text/javascript"></script>
```