Skip to content
Browse files

Fix build and update README

  • Loading branch information...
1 parent 8ea68ef commit e497618a9854e8f0d21eb8e59c6bb89d9884865d Fabien Lavignotte committed Mar 15, 2013
Showing with 63 additions and 14 deletions.
  1. +16 −8 README.md
  2. +2 −1 build/build.bat
  3. +36 −0 build/buildAstroWeb.js
  4. 0 build/{build.js → buildGlobWeb.js}
  5. +9 −5 examples/Basic_api.html
View
24 README.md
@@ -11,25 +11,33 @@ GlobWeb supports the following features:
* Manipulation of vector data through GeoJSON interface: add/remove/select/style modification
* Overlay WMS layer on top of existing base layers
* High performance vector rendering : automatic tiling of vector data
-
+
### Demos ###
<a href="http://demonstrator.telespazio.com/GlobWeb/">Demonstration with earth observation data</a>
<a href="http://demonstrator.telespazio.com/AstroWeb/">Demonstration with astronomic data</a>
<a href="http://demonstrator.telespazio.com/EoliWebGL/">Prototype done for ESA</a>
-### Documentation ###
-<a href="http://tpzf.github.com/GlobWeb/api/index.html">API Documentation</a>
+### Quick start ###
-### Getting started ###
+Pre-build stable version can be downloaded here :
+<a href="http://tpzf.github.com/GlobWeb/download/GlobWeb.min.js">GlobWeb v1.0.0</a>
+<a href="http://tpzf.github.com/GlobWeb/download/AstroWeb.min.js">AstroWeb v1.0.0</a>
+See the following example for basic usage.
+<a href="https://raw.github.com/TPZF/GlobWeb/master/examples/Basic_api.html">Basic usage</a>
-See the examples to show basic usage.
+Internally, GlobWeb is using Standard Asynchronous Module Definition (AMD) modules.
+You can also use GlobWeb using any AMD loader such as RequireJS or Dojo.
+See the following example for using GlobWeb with Require.js :
+https://github.com/TPZF/GlobWeb/tree/master/demo/client
+<a href="https://github.com/TPZF/GlobWeb/tree/master/demo/client">Demo with Require.js</a>
+
+### Documentation ###
+<a href="http://tpzf.github.com/GlobWeb/api/index.html">API Documentation</a>
### Build ###
-To build a minified version of GlobWeb, Python and Java is needed.
-Google Closure Compiler is used in Advanced mode to produce a lightweight library.
-To build, just execute the python script build.py in build/.
+GlobWeb use Require.js optimizer to build a minified version of GlobWeb.
### License ###
View
3 build/build.bat
@@ -1,3 +1,4 @@
call "C:\Program Files\nodejs\nodejsvars.bat"
-node r.js -o build.js
+node r.js -o buildGlobWeb.js
+node r.js -o buildAstroWeb.js
pause
View
36 build/buildAstroWeb.js
@@ -0,0 +1,36 @@
+({
+ baseUrl: "../src",
+ name: "../build/almond",
+ include: ['AstroWeb'],
+ insertRequire: ['AstroWeb'],
+ out: "../build/generated/AstroWeb.min.js",
+ wrap: true,
+ optimize: "uglify2",
+ uglify: {
+ toplevel: true,
+ //ascii_only: true,
+ //beautify: true,
+ max_line_length: 1000,
+ //Custom value supported by r.js but done differently
+ //in uglifyjs directly:
+ //Skip the processor.ast_mangle() part of the uglify call (r.js 2.0.5+)
+ mangle: true,
+ },
+ uglify2: {
+ //Example of a specialized config. If you are fine
+ //with the default options, no need to specify
+ //any of these properties.
+ output: {
+ beautify: false
+ },
+ compress: {
+ /* sequences: false,
+ global_defs: {
+ DEBUG: false
+ }*/
+ },
+ warnings: true,
+ mangle: true
+ },
+
+})
View
0 build/build.js → build/buildGlobWeb.js
File renamed without changes.
View
14 examples/Basic_api.html
@@ -12,17 +12,23 @@
function webGLStart()
{
+ // Create the globe
var globe = new GlobWeb.Globe( {canvas :"GlobWebCanvas"} );
+
+ // Add stats
+ var stats = new GlobWeb.Stats( globe, {element: 'fps', verbose: false} );
+ // Add mouse navigation
var nav = new GlobWeb.Navigation(globe);
- var publicWMSProvider = new GlobWeb.WMSLayer({ baseUrl: "http://demonstrator.telespazio.com/wmspub",
+ // Set background layers
+ var bmLayer = new GlobWeb.WMSLayer({ baseUrl: "http://demonstrator.telespazio.com/wmspub",
layers: "BlueMarble,esat" } );
- globe.setBaseImagery( publicWMSProvider );
+ globe.setBaseImagery( bmLayer );
var elevationLayer = new GlobWeb.WCSElevationLayer({ baseUrl:"http://demonstrator.telespazio.com/wcspub", coverage: "GTOPO", version: "1.0.0"});
globe.setBaseElevation( elevationLayer );
-
+ // Add some vector layer
$.ajax({
url: "europe.json",
success: function(data)
@@ -45,8 +51,6 @@
<canvas id="GlobWebCanvas" style="border: none;" width="1400" height="1050"></canvas>
<br/>
<div id="fps"><span style="font-weight:bold">FPS : 0</span></div>
-
-<!-- <image src="http://s0.tileservice.worldwindcentral.com/getTile?interface=map&version=1&dataset=bmng.topo.bathy.200401&level=2&x=0&y=1" /> -->
</body>

0 comments on commit e497618

Please sign in to comment.
Something went wrong with that request. Please try again.