Adds tutorial support
MODIFY
_config.yml
_config.yml
@@ -12,11 +12,16 @@ defaults:
type: examples
values:
layout: example
+ - scope:
+ path: ""
+ type: tutorials
+ values:
+ layout: tutorial
collections:
examples:
output: true
- tutorial:
+ tutorials:
output: true
# # otherwise some big files in this data folder will hang jekyll build

MODIFY
_data/tutorials.yml
_data/tutorials.yml
-- name: basemap
- title: Create Basemap
- description: Hello world to GeoJS
+- name: basic
+ title: Simple Map
+ description: Make a simple map. Includes HTML, CSS, and Javascript
-- name: vector-layer
- title: Vector Layer
- description: Create Vector Layer and vector geometries
+- name: tile_source
+ title: Changing Tile Source
+ description: Make a simple map and change the tile source
-- name: wms-layer
- title: WMS Layer
- description: create WMS layer
-
-- name: basemap
- title: Create Basemap
- description: Hello world to GeoJS
-
-- name: vector-layer
- title: Vector Layer
- description: Create Vector Layer and vector geometries
-
-- name: basemap
- title: Create Basemap
- description: Hello world to GeoJS
-
-- name: vector-layer
- title: Vector Layer
- description: Create Vector Layer and vector geometries
-
-- name: wms-layer
- title: WMS Layer
- description: create WMS layer
\ No newline at end of file
+- name: wms
+ title: Using a WMS Tile Source
+ description: Make a map with a custom function for getting tiles from a WMS server. This also shows how to get tile bounds in different coordinates
\ No newline at end of file

DELETE
_tutorial/vector-layer/index.html
----
----
-create basemap
\ No newline at end of file

DELETE
_tutorial/vector-layer/thumb.jpg
_tutorial/vector-layer/thumb.jpg
Binary files a/_tutorial/vector-layer/thumb.jpg and /dev/null differ

DELETE
_tutorial/vector-layer/thumb.png
_tutorial/vector-layer/thumb.png
Binary files a/_tutorial/vector-layer/thumb.png and /dev/null differ

DELETE
_tutorial/wms-layer/index.html
----
----
-create basemap
\ No newline at end of file

DELETE
_tutorial/wms-layer/thumb.jpg
_tutorial/wms-layer/thumb.jpg
Binary files a/_tutorial/wms-layer/thumb.jpg and /dev/null differ

DELETE
_tutorial/wms-layer/thumb.png
_tutorial/wms-layer/thumb.png
Binary files a/_tutorial/wms-layer/thumb.png and /dev/null differ

ADD
_tutorials/index.html
+---
+layout: default
+title: Tutorials
+---
+<div class="container page tutorials">
+ <div class="row">
+ <div class="col-md-10 col-md-offset-1">
+ <section>
+ <h2>Tutorials</h2>
+ <p class="text-muted">Lorem ipsum dolor sit amet adipisicing elit. Minima maxime quam architecto quo inventore harum ex magni, dicta impedit.</p>
+ </section>
+ <div class="row">
+ {% for tutorial in site.data.tutorials %}
+ <div class="col-md-4 col-sm-6 portfolio-item">
+ <a class="portfolio-link" "{{"tutorial"|relative_url}}/{{tutorial.name}}">
+ <div class="portfolio-hover">
+ </div>
+ <img src="{{"tutorial"|relative_url}}/{{tutorial.name}}/thumb.jpg" class="img-responsive" alt="">
+ </a>
+ <div class="portfolio-caption">
+ <h4>{{tutorial.title}}</h4>
+ <p class="text-muted">{{tutorial.description}}</p>
+ </div>
+ </div>
+ {% endfor %}
+ </div>
+ </div>
+ </div>
+</div>
\ No newline at end of file

DELETE
css/tutorials.scss
css/tutorials.scss
Adds tutorial support