Giojs, an open-source component for 3D earth data visualization

Giojs, an open-source component for 3D earth data visualization

2022-08-12 0 795
Resource Number 36572 Last Updated 2025-02-24
¥ 0USD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

Giojs is a web 3D earth data visualization component library built on Three.js, which allows you to create your own 3D global data visualization model with a small amount of JS code, and supports customizing all Gio Earth parameters, such as surface, country, connecting line, halo, background, ocean, etc.

 

Giojs, an open-source component for 3D earth data visualization插图

Get Started:

1. Installation

Introduce dependencies in the HTML section of the page <head> :

<script src="three.min.js"></script><script src="gio.min.js"></script>

Or use npm to install and introduce modules.

npm install giojs --save
var Gio = require('giojs');

2、Create a < div > tag and add a controller.

<div id="globeArea" style="width: 200px; height: 200px"></div>
<script>$(function () {//

Get a container to hold your image orthographic image tube Earth.var container = document . getelementbyid(” global area “);// Create Haimenkou controller var controller = new GIO. Controller (container);//Add data controller.addData (data); //Initialize and render the Earthcontroller . init();});</script >

3、Open web page preview

7ace82b890d14babb2b81107e07f4017noop.image_

Other settings:

Surface color

The surface includes countries and oceans, and the default color is 0xffffff.

controller.configure({color: {surface:0xff0000}});
  • connecting line

    The data between two countries will move in a certain direction through the data line in a flowing way. For the selected countries, the lines representing the inflow data are called “input lines” and the lines representing the outflow data are called “output lines”. The default color of “input line” is 0x154492, and the default color of “output line” is 0xdd380c.

controller.configure({color: {in:0xff0000,out:0x00ff00}});
  • background

    The background is the area behind the earth in the 3D scene, and the default color is

    0x000000。

controller.configure({color: {background:0x0000ff}});
  • halation

    Halo is the aperture around the earth, and the default color is 0xffffff.

controller.configure({color: {halo:0xff0000}});
  • ocean

    The ocean is a specific area on the 3D earth surface. On the Gio earth surface, the ocean is the darkest area with a default brightness of 0.5.

controller.configure({brightness: {ocean:0.8}});
  • Add data

    Load data into Gio’s controller and overwrite previous data synchronously. The data set used for visualization is in JSON format. Each element in the array contains an input country (I), an output country (E) and a numerical value (V).

[{"e": "CN","i": "US","v": 3300000},{"e": "CN","i": "RU","v": 10000}]
  • Input data to continent

    In the input data, “I” can be defined as “continent” (for example, input “Asia” for Asia), so the definition represents the output from a country to a “continent”.

    [{// “e “cannot be set as a continent, and the output must be the country e:” cn “.//You can set” i “as Europe and” Europe “as the input parameter i:

    “Europe”,v: 5000000}]

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free source code Giojs, an open-source component for 3D earth data visualization https://ictcoder.com/kyym/giojs-an-open-source-component-for-3d-earth-data-visualization.html

Share free open-source source code

Q&A
  • 1, automatic: after taking the photo, click the (download) link to download; 2. Manual: After taking the photo, contact the seller to issue it or contact the official to find the developer to ship.
View details
  • 1, the default transaction cycle of the source code: manual delivery of goods for 1-3 days, and the user payment amount will enter the platform guarantee until the completion of the transaction or 3-7 days can be issued, in case of disputes indefinitely extend the collection amount until the dispute is resolved or refunded!
View details
  • 1. Heptalon will permanently archive the process of trading between the two parties and the snapshots of the traded goods to ensure that the transaction is true, effective and safe! 2, Seven PAWS can not guarantee such as "permanent package update", "permanent technical support" and other similar transactions after the merchant commitment, please identify the buyer; 3, in the source code at the same time there is a website demonstration and picture demonstration, and the site is inconsistent with the diagram, the default according to the diagram as the dispute evaluation basis (except for special statements or agreement); 4, in the absence of "no legitimate basis for refund", the commodity written "once sold, no support for refund" and other similar statements, shall be deemed invalid; 5, before the shooting, the transaction content agreed by the two parties on QQ can also be the basis for dispute judgment (agreement and description of the conflict, the agreement shall prevail); 6, because the chat record can be used as the basis for dispute judgment, so when the two sides contact, only communicate with the other party on the QQ and mobile phone number left on the systemhere, in case the other party does not recognize self-commitment. 7, although the probability of disputes is very small, but be sure to retain such important information as chat records, mobile phone messages, etc., in case of disputes, it is convenient for seven PAWS to intervene in rapid processing.
View details
  • 1. As a third-party intermediary platform, Qichou protects the security of the transaction and the rights and interests of both buyers and sellers according to the transaction contract (commodity description, content agreed before the transaction); 2, non-platform online trading projects, any consequences have nothing to do with mutual site; No matter the seller for any reason to require offline transactions, please contact the management report.
View details

Related Article

make a comment
No comments available at the moment
Official customer service team

To solve your worries - 24 hours online professional service