Can someone help me pls!

33 views
Skip to first unread message

ivanfe...@gmail.com

unread,
Oct 20, 2019, 9:28:55 PM10/20/19
to cesium-dev
1. A concise explanation of the problem you're experiencing.
i know maybe this issue has been solve in the past but im new working with cesium and i really need help. the thing is that working im sandcastle developing an app for viewing 3d noise maps in Bogotá, when i write my code in Sandcastle´s script it shows perfectly all that i´ve been dooing, but when i want to open the app directly in a browser it doesnt show anything only the 3D globe , i've been researching by my own and i have find out an example where it loads the necessary libraries for it to work, but simply nothing happens, how can i solve this problem, i would really appreciate any help. 


2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
 The code that i use in the html part is the next one:

<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta name="description" content="A simple KML example.">
    <meta name="cesium-sandcastle-labels" content="Showcases, DataSources">
    <title>Mapas de Ruido</title>
    <script type="text/javascript" src="../Sandcastle-header.js"></script>
<script type="text/javascript" src="http://cesiumjs.org/releases/1.60/Build/Cesium/Cesium.js"></script>
</head>
<body>
<style>

    @import url(../templates/bucket.css);
</style>
<div id="cesiumContainer" class="fullSize"></div>
<div id="loadingOverlay"><h1>Cargando...</h1></div>
<div id="toolbar"></div>

<script type="text/javascript" src="../Sandcastle-client.js"></script>
<script id="cesium_sandcastle_script">


3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

like i said it is needed to visualize what i've done in sandcastle as a normal app.

4. The Cesium version you're using, your operating system and browser.

im using Cesium's 1.60v on Windows 10 and opening the app in Google Chrome.


Omar Shehata

unread,
Oct 22, 2019, 11:01:14 AM10/22/19
to cesium-dev
Have you seen the getting started tutorial? It explains how to set up a CesiumJS app in a separate page:

https://cesium.com/docs/tutorials/getting-started/

You can also click "Open in new window" in Sandcastle to get a full-screen app that you could embed/iframe into your website. As long as you're using your own Cesium ion token it should all work fine.
Reply all
Reply to author
Forward
0 new messages