{"id":20476861,"url":"https://github.com/askmike/realtime-webgl-globe","last_synced_at":"2025-04-13T12:50:23.313Z","repository":{"id":25962319,"uuid":"29404195","full_name":"askmike/realtime-webgl-globe","owner":"askmike","description":"A webgl earth making it easy to add shapes at coordinates in realtime","archived":false,"fork":false,"pushed_at":"2016-09-30T11:04:21.000Z","size":3111,"stargazers_count":89,"open_issues_count":0,"forks_count":25,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T03:51:17.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/askmike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-17T20:15:15.000Z","updated_at":"2025-03-24T11:23:33.000Z","dependencies_parsed_at":"2022-08-19T10:10:46.279Z","dependency_job_id":null,"html_url":"https://github.com/askmike/realtime-webgl-globe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askmike%2Frealtime-webgl-globe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askmike%2Frealtime-webgl-globe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askmike%2Frealtime-webgl-globe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askmike%2Frealtime-webgl-globe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/askmike","download_url":"https://codeload.github.com/askmike/realtime-webgl-globe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717252,"owners_count":21150388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T15:24:10.047Z","updated_at":"2025-04-13T12:50:23.292Z","avatar_url":"https://github.com/askmike.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Realtime Webgl Globe\n\nA webgl earth making it easy to add custom shapes at coordinates in realtime.\n\n![example gif](https://mikevanrossum.nl/stuff/realtime-webgl-globe/realtime-globe.gif)\n\n[Demo](https://mikevanrossum.nl/stuff/realtime-webgl-globe/example.html)!\n\nOr check out [this demo](https://github.com/askmike/realtime-webgl-globe/blob/master/example-iss.html) that shows the position of the International Space Station!\n\n## Features\n\n- Makes it easy to add custom shapes to the globe at lat/long positions.\n- Interactive (mousewheel scroll \u0026 mouse drags).\n- Easy API for adding elements on the globe while it's running.\n\n## Basic Usage\n\n    var div = document.getElementById('globe');\n    var urls = {\n      earth: 'img/world.jpg',\n      bump: 'img/bump.jpg',\n      specular: 'img/specular.jpg',\n    }\n\n    // create a globe\n    var globe = new Globe(div, urls);\n\n    // start it\n    globe.init();\n\n    // random data\n    var data = {\n      color: '#FF0000',\n      size: 20,\n      lat: 52.3747158, // Amsterdam!\n      lon: 4.8986231,  // Amsterdam!\n      size: 20\n    };\n\n    // add a block on Amsterdam\n    globe.addBlock(data);\n\n## API\n\n* * *\n\n## Class: Globe\nRealtime Globe is a WebGL based earth globe that\nmakes it super simple to add shapes in realtime\non specific lat/lon positions on earth.\n\n### Globe.init() \n\nInitializes the globe\n\n\n\n### Globe.zoomRelative(delta) \n\nZoom the earth relatively to its current zoom\n(passing a positive number will zoom towards\nthe earth, while a negative number will zoom\naway from earth).\n\n**Parameters**\n\n - **delta**: `Integer`\n\n**Returns**: `this`\n\n### Globe.zoomTo(altitute) \n\nTransition the altitute of the camera to a\nspecific distance from the earth's core.\n\n**Parameters**\n\n - **altitute**: `Integer`\n\n**Returns**: `this`\n\n### Globe.zoomImmediatelyTo(altitude) \n\nSet the altitute of the camera to a specific\ndistance from the earth's core.\n\n**Parameters**\n\n - **altitude**: `Integer`\n\n**Returns**: `this`\n\n### Globe.center(pos) \n\nTransition the globe from its current position\nto the new coordinates.\n\n**Parameters**\n\n - **pos**: `Object`, the position\n  - **pos.lat**: `Float`, latitute position\n  - **pos.lon**: `Float`, longtitute position\n\n**Returns**: `this`\n\n### Globe.centerImmediate(pos) \n\nCenter the globe on the new coordinates.\n\n**Parameters**\n\n - **pos**: `Object`, the position\n  - **pos.lat**: `Float`, latitute position\n  - **pos.lon**: `Float`, longtitute position\n\n**Returns**: `this`\n\n### Globe.addLevitatingBlock(data) \n\nAdds a block to the globe. The globe will spawn\njust below the earth's surface and `levitate`\nout of the surface until it is fully `out` of the\nearth.\n\n**Parameters**\n\n - **data**: `Object`\n  - **data.lat**: `Float`, latitute position\n  - **data.lon**: `Float`, longtitute position\n  - **data.size**: `Float`, size of the block\n  - **data.color**: `String`, color of the block\n\n**Returns**: `this`\n\n### Globe.addBlock(data) \n\nAdds a block to the globe.\n\n**Parameters**\n\n - **data**: `Object`\n  - **data.lat**: `Float`, latitute position\n  - **data.lon**: `Float`, longtitute position\n  - **data.size**: `Float`, size of the block\n  - **data.color**: `String`, color of the block\n\n**Returns**: `this`\n\n### Globe.removeAllBlocks() \n\nRemove all blocks from the globe.\n\n\n**Returns**: `this`\n\n\n\n* * *\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskmike%2Frealtime-webgl-globe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faskmike%2Frealtime-webgl-globe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskmike%2Frealtime-webgl-globe/lists"}