Skip to content

Instantly share code, notes, and snippets.

View schmidtk's full-sized avatar

Kevin Schmidt schmidtk

  • Teal
  • Leadville, CO
View GitHub Profile
var viewer = new Cesium.Viewer('cesiumContainer');
var font = 'bold 13px Arial';
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-75, 40),
label : {
text : 'A\nA\nA',
font : font,
fillColor : Cesium.Color.WHITE,
outlineColor : Cesium.Color.BLACK,
outlineWidth : 2,
/* 2012-03-26
Copyright 2012 Christopher Weiss (cmweiss@gmail.com)
Suggestions for improvements are appreciated.
Adapted from the geomagc software and World Magnetic Model of the NOAA
Satellite and Information Service, National Geophysical Data Center
http://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml
geoMagFactory() requires a world magnetic model (WMM) object. The helper
@schmidtk
schmidtk / geomag.test.html
Last active January 4, 2018 22:22 — forked from wallw-dev/geomag.test.html
Demonstrate geomagjs issue in Ubuntu
<!DOCTYPE html>
<pre id="results"></pre>
<script>
// ********** Helper Stuff; Ignore *********
function x2str(x) {
return x.toString();
}
function log() {