GIScene.js

A 3D WebGIS framework. Based on Three.js. Easy to learn and customize.

This project extends the fantastic capabilities of the 3D JavaScript library three.js by adding GIS concepts like Layers, Controls, Coordinates, Projections and more. If you are familiar with the web mapping library OpenLayers you will find this library easy to use. You can use it for georeferenced 3D data, but it takes a lot of work from you no matter if your models are georeferenced or not.

Features

Basic Usage

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>GIScene.js example - Basic Usage</title>
        <script src="js/THREE/r63/three.min.js"></script>
        <script src="js/GIScene/GIScene_min_1.0.1.js"></script>
    </head>
    <body>
        <h1>GIScene.js example - Basic Usage</h1>
        <div id="scene"></div>
        <script>

            //create a new scene
            var scene = new GIScene.Scene('scene');

            //add a layer
            var layer_options = {
                url : "models/stanford_bunny/bunny_brown.ctm",
                format : GIScene.Format.CTM,
                //optional: automatic zoom depending on object size after layer has been loaded
                listeners: [ { 'load' : function( event ){ var layer = event.content; scene.setCenter(event.content.boundingBox.center(), new THREE.Vector3(0, 0, event.content.boundingBox.getBoundingSphere().radius*2)); } } ]
            };

            var layer = new GIScene.Layer.Fixed("Layername", layer_options);

            scene.addLayer(layer);

            //create, add and activate a navigation control
            var nav_ctrl = new GIScene.Control.PanOrbitZoomCenter(scene.camera);

            scene.addControl(nav_ctrl);

            nav_ctrl.activate();

        </script>
    </body>
</html>

Acknowledgements

GIScene has been developed by Michael Auer (GIScience Research Group, Institute of Geography, Heidelberg University, Germany) during the research project MayaArch3D. The MayaArch3D-SingleObjectViewer was developed using the GIScene.js library. Between 2012 and 2015 the development of GIScene.js and the MayaArch3D project has been funded by the German Ministry of Education and Research (BMBF). MayaArch3D has been a joint research project between the German Archaeological Institute (DAI) and GIScience Research Group, Heidelberg University
Logos of Federal Ministry of Education and Research (BMBF), German Archaeologicl Institute (DAI), Heideberg University and GIScience Research Group Heidelberg

License

The MIT License (MIT)

Copyright (c) 2015 Michael Auer , GIScience Research Group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.