From 5e46023fb9dfef9ff608cf9c0ff6d4c403249cce Mon Sep 17 00:00:00 2001 From: David Manthey Date: Fri, 4 Aug 2017 16:16:57 -0400 Subject: [PATCH] Fix import order in tutorials. geo.ext.js has to be imported before geo.js for Hammer to be used. With this change, the tutorials work on an iPad. --- tutorials/basic/index.pug | 5 +++-- tutorials/common/tutorials.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tutorials/basic/index.pug b/tutorials/basic/index.pug index fec9673b61..026c39c06d 100644 --- a/tutorials/basic/index.pug +++ b/tutorials/basic/index.pug @@ -9,8 +9,8 @@ block mainTutorial - +
@@ -19,7 +19,8 @@ block mainTutorial :markdown-it The second script, ``geo.ext.min.js``, is optional. It adds support - for svg elements and touch interaction. + for svg elements and touch interaction. It needs to be added before + ``geo.min.js``. Some CSS will make our map fill the page: diff --git a/tutorials/common/tutorials.js b/tutorials/common/tutorials.js index ea521dcadb..243f58a5de 100644 --- a/tutorials/common/tutorials.js +++ b/tutorials/common/tutorials.js @@ -13,8 +13,8 @@ var processBlockInfo = { /* We could also load from the CDN: * https://cdnjs.cloudflare.com/ajax/libs/geojs/0.12.2/geo.min.js * or the non-minified versions to make debug easier. */ - ' \n' + ' \n' + + ' \n' + '\n' + '\n' + '
\n' +