Giter Club home page Giter Club logo

coesite3's Introduction

coesite3

vector tile server (onyx with Azure AD authentication) in development environment.
Please be advised that this repository is for a specific environment. Not for general use.

Compared with un-vector-tile-toolkit/coesite, this repository has following characters:

  1. npm modules are updated.
  2. ESRI interface has been added. (see unvt/marble to check how it works)
  3. mysql is used for the session store.
  4. Some functions, such as raster drawing test and story-telling, are removed to make the structure simple.

environment

I developed this nodejs server for Red Hat Enterprise Linux release 8.4.
Nodejs v16.13.1
npm 8.1.2
pm2 v4.5.0

install

git clone https://github.com/unvt/coesite3
cd coesite3
npm install

Run

Config setting

Edit .env and config/default.hjson to provide necessary confit setting, and prepare mysql to store the session info.

OAUTH_CLIENT_ID=Your APP/Client ID
OAUTH_CLIENT_SECRET=Your secret
OAUTH_REDIRECT_URI=https://yourdomain/unvt/auth/callback
OAUTH_SCOPES='user.read'
OAUTH_AUTHORITY=https://login.microsoftonline.com/(your place)/
{
 morganFormat: tiny
 htdocsPath: public
 privkeyPath: key-location/privkey.pem
 fullchainPath: key-location/cert.pem
 logDirPath: log
 port: 443
 tz:{
  unosm: 6
 }
 sTileName:{
  unosm: small-scale
 }
 defaultZ: 6
 mbtilesDir: mbtiles
 esriDir: esri
 esri-tilemap-min:{
  ne-test: 0
  }
 esri-tilemap-max:{
  ne-test: 5
  }

}

Start server

node app.js
or
./pmserve.sh

To stop, run ./pmstop.sh
(Please make sure that you have the permission to execute sh scripts.)

sh containts sudo because I needed it in my own environment.

Structure

top page will be https://(your domain)/unvt
Tile will be served from https://(your domain)/unvt/VT/zxy/{t}/{z}/{x}/{y}.pbf

Tips

If your node is not allow to use port 443, try

which node
sudo setcap cap_net_bind_service=+ep (your location)/bin/node

Plugins

Some plugins are stored in the public folder. maplibre-gl-export and maplibr-gl-legend are from watergis. (MIT license)

Reference

https://docs.microsoft.com/en-us/graph/tutorials/node?WT.mc_id=Portal-Microsoft_AAD_RegisteredApps&tutorial-step=3

coesite3's People

Contributors

ubukawa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.