javascript - cesium api clone and development how to use requirejs what is dependency of cesium -
javascript - cesium api clone and development how to use requirejs what is dependency of cesium -
i want clone cesium git , changing javascript files.i dont want add together minified file build/cesium.js want utilize separeted javascript files. code
<script data-main="scripts/main" src="../thirdparty/requirejs-2.1.9/require.js"></script> <style> @import url(../source/widgets/widgets.css); </style> </head> <body> <div id="cesiumcontainer"></div> <script> require(["widgets/viewer/viewer"], function(util) { //this function called when scripts/helper/util.js loaded. //if util.js calls define(), function not fired until //util's dependencies have loaded, , util argument hold //the module value "helper/util". var viewer = new cesium.viewer('cesiumcontainer'); });
error:
get file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/cesium.js net::err_file_not_found require.js:1881 uncaught error: script error for: cesium http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/globefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/globefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/globefsdepth.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/globefsdepth http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/globefspole.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/globefspole http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/globevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/globevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/globevsdepth.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/globevsdepth http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/globevspole.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/globevspole http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/skyatmospherefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/skyatmospherefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/skyatmospherevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/skyatmospherevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/skyboxfs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/skyboxfs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/skyboxvs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/skyboxvs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/sunfs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/sunfs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/suntexturefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/suntexturefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/sunvs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/sunvs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/billboardcollectionfs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/billboardcollectionfs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/billboardcollectionvs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/billboardcollectionvs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/customsensorvolumefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/customsensorvolumefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/customsensorvolumevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/customsensorvolumevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/sensorvolume.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/sensorvolume http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/bumpmapmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/bumpmapmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/checkerboardmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/checkerboardmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/dotmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/dotmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/fadematerial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/fadematerial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/fresnelmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/fresnelmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/gridmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/gridmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/normalmapmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/normalmapmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/polylinearrowmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/polylinearrowmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/polylineglowmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/polylineglowmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/polylineoutlinematerial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/polylineoutlinematerial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/reflectionmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/reflectionmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/refractionmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/refractionmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/rimlightingmaterial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/rimlightingmaterial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/stripematerial.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/stripematerial http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/materials/water.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/materials/water http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/polylinecommon.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/polylinecommon http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/polylinefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/polylinefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/polylinevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/polylinevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/allmaterialappearancefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/allmaterialappearancefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/allmaterialappearancevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/allmaterialappearancevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/basicmaterialappearancefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/basicmaterialappearancefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/basicmaterialappearancevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/basicmaterialappearancevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/texturedmaterialappearancefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/texturedmaterialappearancefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/texturedmaterialappearancevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/texturedmaterialappearancevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/perinstancecolorappearancefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/perinstancecolorappearancefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/perinstancecolorappearancevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/perinstancecolorappearancevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/perinstanceflatcolorappearancefs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/perinstanceflatcolorappearancefs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/perinstanceflatcolorappearancevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/perinstanceflatcolorappearancevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/polylinecolorappearancevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/polylinecolorappearancevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/appearances/polylinematerialappearancevs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/appearances/polylinematerialappearancevs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/ellipsoidfs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/ellipsoidfs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/ellipsoidvs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/ellipsoidvs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/viewportquadvs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/viewportquadvs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/postprocessfilters/fxaa.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/postprocessfilters/fxaa http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/adjusttranslucentfs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/adjusttranslucentfs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/compositeoitfs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/compositeoitfs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/postprocessfilters/additiveblend.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/postprocessfilters/additiveblend http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/postprocessfilters/brightpass.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/postprocessfilters/brightpass http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/postprocessfilters/gaussianblur1d.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/postprocessfilters/gaussianblur1d http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/postprocessfilters/passthrough.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/postprocessfilters/passthrough http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/reprojectwebmercatorfs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/reprojectwebmercatorfs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/reprojectwebmercatorvs.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/reprojectwebmercatorvs http://requirejs.org/docs/errors.html#scripterror require.js:163 file:///c:/users/eesirik/desktop/cesium-master/apps/scripts/shaders/builtin/czmbuiltins.js net::err_file_not_found require.js:1881 uncaught error: script error for: shaders/builtin/czmbuiltins http://requirejs.org/docs/errors.html#scripterror
it says need cesium.js want work @ development mode.
most of cesium sandcastle examples functional requirejs applications can utilize illustration of how reference source tree amd modules.
for example:
https://github.com/analyticalgraphicsinc/cesium/blob/master/apps/sandcastle/gallery/cesium%20widget.html
take note of phone call require.config
sets baseurl
. when cesium
module required, found in source
folder.
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1"> <!-- utilize chrome frame in ie --> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> <meta name="description" content="use viewer widget start building new applications or embed cesium existing applications."> <meta name="cesium-sandcastle-labels" content="beginner, showcases"> <title>cesium demo</title> <script type="text/javascript" src="../sandcastle-header.js"></script> <script type="text/javascript" src="../../../thirdparty/requirejs-2.1.9/require.js"></script> <script type="text/javascript"> require.config({ baseurl : '../../../source', waitseconds : 60 }); </script> </head> <body class="sandcastle-loading" data-sandcastle-bucket="bucket-requirejs.html" data-sandcastle-title="cesium + require.js"> <style> @import url(../templates/bucket.css); </style> <div id="cesiumcontainer" class="fullsize"></div> <div id="loadingoverlay"><h1>loading...</h1></div> <div id="toolbar"></div> <script id="cesium_sandcastle_script"> require(['cesium'], function(cesium) { "use strict"; // cesium.cesiumwidget similar cesium.viewer, // trimmed down. widget 3d globe; // not include animation, imagery selection, // , other widgets, nor depend on third-party // knockout library. var widget = new cesium.cesiumwidget('cesiumcontainer'); sandcastle.finishedloading(); }); </script> </body> </html>
javascript requirejs cesium
Comments
Post a Comment