diff --git a/docs/config.json b/docs/config.json index f0d743eb13..040b1decc8 100644 --- a/docs/config.json +++ b/docs/config.json @@ -91,6 +91,10 @@ "$3DTilesExtensions", "$3dTilesAbstractExtension", "BatchTableHierarchyExtension" + ], + + "Plugins": [ + "DragNDrop" ] } }, @@ -102,7 +106,7 @@ } }, "source": { - "include": [ "src" ], + "include": [ "src", "examples/js" ], "exclude": [ "src/ThreeExtended" ] }, "plugins": ["plugins/markdown"] diff --git a/docs/publish.js b/docs/publish.js index d65de394a9..14c3f644c0 100644 --- a/docs/publish.js +++ b/docs/publish.js @@ -23,8 +23,8 @@ function find(spec) { } function linkToSource(filename, path) { - const location = path.split('src')[1]; - return `src${location}/${filename}`; + const location = path.split('itowns/')[1]; + return `${location}/${filename}`; } function rank(properties) { diff --git a/examples/css/example.css b/examples/css/example.css index 5099dd7321..4c12d0eaff 100644 --- a/examples/css/example.css +++ b/examples/css/example.css @@ -37,7 +37,8 @@ body { top: 0; right: 0; color: #eee; - font: 11px 'Lucida Grande',sans-serif; + font: 16px 'Lucida Grande',sans-serif; + max-width: 20rem; line-height: normal; text-shadow: 0 -1px 0 #111; padding: 0 1rem; diff --git a/examples/drag-n-drop.html b/examples/drag-n-drop.html new file mode 100644 index 0000000000..930082893c --- /dev/null +++ b/examples/drag-n-drop.html @@ -0,0 +1,62 @@ + +
+Drag and drop a Geojson or Gpx file onto the viewer, and see it + loaded as a ColorLayer.