• Stars
    star
    118
  • Rank 290,546 (Top 6 %)
  • Language
    TypeScript
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JavaScript library for Interactive high quality 3D globes and maps in the browser

Mapray

maprayJS is a JavaScript library for a high quality interactive 3D globes and digital twin on the web. It is based on WebGL. WebSite

Installation

Script Tag

core packages

  <script src="https://resource.mapray.com/mapray-js/v0.9.3/mapray.min.js"></script>

ui packages

  <script src="https://resource.mapray.com/mapray-js/v0.9.3/maprayui.min.js"></script>

NPM module

core packages

npm install --save @mapray/mapray-js

ui packages

npm install --save @mapray/ui

Usage

World Terrain data hosted by Mapray Cloud platform. Access Token is required to access to Mapray Cloud, it is under Beta Test and you can join beta test for free if you meet the our requirements. The service web site of Mapray Cloud is here. Mapray Cloud managed by Sony Group Corporation. If you have any questions about the access token of mapray cloud or the services of mapray cloud, please contact us from the contact page.

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Hello Globe</title>
    <link rel="stylesheet" href="https://resource.mapray.com/styles/v1/mapray.css">
</head>
<style>
    html, body {
        height: 100%;
        margin: 0;
    }
    div#mapray-container {
        display: flex;
        height: 100%;
    }
</style>
<body>
    <div id="mapray-container"></div>
</body>
</html>
<script src="https://resource.mapray.com/mapray-js/v0.9.3/mapray.min.js"></script>
<script>
     // Set Access Token for mapray cloud
       var accessToken = "<your access token here>";

       // For Image tiles
       var imageProvider = new mapray.StandardImageProvider( "https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/", ".jpg", 256, 0, 18 );

       // Create viewer
       var viewer = new mapray.Viewer(
           "mapray-container", {
               image_provider: imageProvider,
               dem_provider: new mapray.CloudDemProvider(accessToken)
           }
       );
       viewer.attribution_controller.addAttribution({
           display: "国土地理院",
           link: "http://maps.gsi.go.jp/development/ichiran.html"
        });
       // Setting the position of camera
       var home_pos = { longitude: 138.247739, latitude: 35.677604, height: 3000 };

       var home_view_geoPoint = new mapray.GeoPoint( home_pos.longitude, home_pos.latitude, home_pos.height );
       var home_view_to_gocs = home_view_geoPoint.getMlocsToGocsMatrix( mapray.GeoMath.createMatrix() );

       var cam_pos = mapray.GeoMath.createVector3( [-3000, 2600, 1000] );
       var cam_end_pos    = mapray.GeoMath.createVector3( [0, 0, 0] );
       var cam_up         = mapray.GeoMath.createVector3( [0, 0, 1] );

       var view_to_home = mapray.GeoMath.createMatrix();
       mapray.GeoMath.lookat_matrix(cam_pos, cam_end_pos, cam_up, view_to_home);

       var view_to_gocs = viewer.camera.view_to_gocs;
       mapray.GeoMath.mul_AA( home_view_to_gocs, view_to_home, view_to_gocs );

       viewer.camera.near = 30;
       viewer.camera.far = 500000;
</script>

Next Steps

Documentation

API documents

Execute the following command in the root directory.

npm run doc

License

maprayJS is licensed under the Apache License Version 2.0. It also depends on open source software packages. For more information, see LICENSES.

More Repositories

1

sonyflake

A distributed unique ID generator inspired by Twitter's Snowflake
Go
3,484
star
2

nnabla

Neural Network Libraries
Python
2,634
star
3

gobreaker

Circuit Breaker implemented in Go
Go
2,606
star
4

flutter-embedded-linux

Embedded Linux embedding for Flutter
C++
995
star
5

v8eval

Multi-language bindings to JavaScript engine V8
C++
399
star
6

flutter-elinux

Flutter tools for embedded Linux (eLinux)
Dart
392
star
7

ai-research-code

Python
316
star
8

nnabla-examples

Neural Network Libraries https://nnabla.org/ - Examples
Python
280
star
9

model_optimization

Model Compression Toolkit (MCT) is an open source project for neural network model optimization under efficient, constrained hardware. This project provides researchers, developers, and engineers advanced quantization and compression tools for deploying state-of-the-art neural networks.
Python
250
star
10

easyhttpcpp

A cross-platform HTTP client library with a focus on usability and speed
C++
152
star
11

sqvae

Pytorch implementation of stochastically quantized variational autoencoder (SQ-VAE)
Python
132
star
12

nmos-cpp

An NMOS (Networked Media Open Specifications) Registry and Node in C++ (IS-04, IS-05)
C++
113
star
13

nnabla-rl

Deep reinforcement learning library built on top of Neural Network Libraries
Python
107
star
14

nnabla-ext-cuda

A CUDA Extension of Neural Network Libraries
Cuda
89
star
15

DiffRoll

PyTorch implementation of DiffRoll, a diffusion-based generative automatic music transcription (AMT) model
Jupyter Notebook
62
star
16

meta-flutter

Yocto recipes for Flutter Engine and custom embedders
BitBake
61
star
17

FxNorm-automix

FxNorm-Automix - Implementation of automatic music mixing systems. We show how we can use wet music data and repurpose it to train a fully automatic mixing system
Python
51
star
18

creativeai

CSS
49
star
19

appsync-client-go

AWS AppSync golang client library
Go
46
star
20

nnabla-nas

Neural Architecture Search for Neural Network Libraries
Python
44
star
21

flutter-elinux-plugins

Flutter plugins for embedded Linux (eLinux)
C++
43
star
22

nnabla-c-runtime

Neural Network Libraries https://nnabla.org/ - C Runtime
C
38
star
23

huis-ui-creator

JavaScript
38
star
24

NDJIR

NDJIR: Neural Direct and Joint Inverse Rendering for Geometry, Lights, and Materials of Real Object
Python
36
star
25

pyIEOE

Python
29
star
26

nmos-js

An NMOS (Networked Media Open Specifications) Client in Javascript (IS-04, IS-05)
JavaScript
27
star
27

openocd-nuttx

Fork of OpenOCD with NuttX thread support.
C
25
star
28

CLIPSep

Python
23
star
29

pdaf-library

C
22
star
30

cdp-js

Libraries/SDK modules for multi-platform application development
TypeScript
20
star
31

polar-densification

Python
17
star
32

cordova-plugin-cdp-nativebridge

JavaScript
16
star
33

audio-visual-seld-dcase2023

Baseline method for audio-visual sound event localization and detection task of DCASE 2023 challenge
Python
16
star
34

generator-cordova-plugin-devbed

JavaScript
14
star
35

nnc-plugin

Plugins for Neural Network Console (https://dl.sony.com/).
Python
14
star
36

dolp-colorconstancy

Python
11
star
37

typescript-fsa-redux-middleware

Fluent syntax for defining typesafe Redux vanilla middlewares on top of typescript-fsa.
TypeScript
9
star
38

cdn-purge-control-php

Multi CDN purge control library for PHP
PHP
8
star
39

micro-notifier

Simplified Pusher Clone
Go
8
star
40

nnabla-browser

Visualization toolkit for Neural Network Libraries
TypeScript
8
star
41

isren

JavaScript
8
star
42

pixel-guided-diffusion

Fine-grained Image Editing by Pixel-wise Guidance Using Diffusion Models
Python
8
star
43

smarttennissensorsdk

The Smart Tennis Sensor plugs into the end of a tennis racket and records data about all the shots you make throughout a game or practice. With the SDK, you can develop apps for analyzing and presenting that data in real-time.
Java
8
star
44

cdp-cli

Command line tools for generating start point of multi-platform application development (Details: see cdp-js repository)
HTML
7
star
45

timbre-trap

Code for the paper "Timbre-Trap: A Low-Resource Framework for Instrument-Agnostic Music Transcription"
Python
7
star
46

mct_quantizers

Python
6
star
47

aibo-development-tutorial

6
star
48

custom_layers

Python
5
star
49

smarttennissensormp4meta

Java
4
star
50

fp-diffusion

Jupyter Notebook
3
star
51

node-win-usbdev

C++
3
star
52

evsCluster

Python scripts to process EVS (Event-based vision sensor) data
Python
3
star
53

Instruct3Dto3D-doc

Official documentation of Instruct 3D-to-3D
HTML
2
star
54

nnabla-js

TypeScript
1
star
55

nnabla-doc

1
star