Comments (4)
I've been thinking about this problem. I guess the solution would be to have a config file for the viewer (e.g. a config.js file) that sets the right "things" for the specific deployment.
So that you can place the code everywhere you want but change the configuration on each machine. For example, if the deployment of this viewer is done through docker it should point to localhost (to the local server) by default, this is not true for other deployments.
What do you think? (@cchriste @scrgiorgio)
from openvisusjs.
It's not even so nice for Docker deployments: if you run a docker on one machine but try to access its web viewer from another machine, "localhost" in this case will still refer to the client machine, not the server.
from openvisusjs.
from openvisusjs.
Now the viewer.html includes src/config.js that contains a variable to set the URL of the server.
This can be edited for each deployment.
from openvisusjs.
Related Issues (15)
- 3D does not work HOT 1
- ensure the full url is used to request data (e.g., for box queries) HOT 1
- fix http/https url issue HOT 3
- WebGL 2 unavailable on windows despite being available on other webpages HOT 1
- webviewer time slider doesn't always update HOT 5
- Create Docker image based on OpenVisus image which includes web viewer
- set default palette_min and palette_max to 0 HOT 4
- add ability to pan in 3d
- changing timesteps should maintain current viewpoint HOT 3
- Not clear what View/Download/Share buttons are for, and selecting them has odd effects HOT 2
- In general, the UI seems confusing and doesn't offer feedback when a user performs an operation. HOT 3
- Change resolution and Download from shared link don't work correctly
- Download doesn't work on Firefox 57 HOT 1
- error on refresh
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvisusjs.