Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

255
Views
CESIUM ERROR "ReferenceError: $ is not defined " (writing in SANDCASTLE)
$.ajax({
  type: "GET",
  dataType: "json",
  url: "https://reqres.in/api/unknown/2",
  success: function(data){
    console.log(data)
  }
});

i tried insesrt:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

but cesium not works like ordinary platfroms

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Cesium's "Sandcastle" test environment does not include a means to include JQuery. Instead, you can use Cesium's own helper functions for things like this, such as Cesium.Resource.fetchJson.

For example: Live Sandcastle Demo

var viewer = new Cesium.Viewer("cesiumContainer");

Cesium.Resource.fetchJson({
  url: "https://reqres.in/api/unknown/2"
}).then(data => {
  console.log(JSON.stringify(data, null, '    '));
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!