From cd27a13a4211ba2627cfce87ed61e9937118bf62 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 3 May 2020 16:27:51 -0600 Subject: [PATCH] Show the main.js right below the map --- examples/resources/common.js | 2 +- examples/templates/example.html | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/examples/resources/common.js b/examples/resources/common.js index a59685d3d5..62ed888dd7 100644 --- a/examples/resources/common.js +++ b/examples/resources/common.js @@ -74,7 +74,7 @@ 'index.html': { content: html }, - 'index.js': { + 'main.js': { content: js }, "package.json": { diff --git a/examples/templates/example.html b/examples/templates/example.html index b0c5cee4b7..5826db242f 100644 --- a/examples/templates/example.html +++ b/examples/templates/example.html @@ -130,6 +130,14 @@ +
+
+ Copy +
+
main.jsimport 'ol/ol.css';
+{{ js.source }}
+
+
Copy @@ -149,17 +157,11 @@ {{#if css.source}}{{ indent css.source spaces=6 }}{{/if}} </style> </head> <body> -{{ indent contents spaces=4 }} <script src="index.js"></script> +{{ indent contents spaces=4 }} <script src="main.js"></script> </body> </html>
-
-
- Copy -
-
index.jsimport 'ol/ol.css';
-{{ js.source }}
-
+ {{#if worker.source}}
@@ -168,6 +170,7 @@
worker.js{{ worker.source }}
{{/if}} +
Copy @@ -175,6 +178,7 @@
package.json{{ pkgJson }}
+ {{{ js.tag }}}