You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In essence, I need to create some additional fields in the editor.html file. When a user enters information in those fields, I will take their responses and use them to produce a series of layers that the plugin will interpret to make a 3D Globe on the rendering screen above the inputs.
My issue is I do not know how to do this. In the codebase there is no index.html file that contains scripts that normally would be included in an index.html file. In fact, the editor.html file doesn't contain any "head" or "body" tags.
What I've tried to do is first to create a simple function in monitor.js, like so:
At the very bottom of the file, I attempted to link the module.js file to editor.js like so:
<script src="module.js"></script>
I've tried all sorts of filepaths for the src...relative file path, absolute, local. I did every combination I could think of that people would do to normally link external js files to html files. The end result is always the same whenever I type into the field I made:
All that I need to do is get the input that the user is typing in. Talking to a colleague of mine, he noticed that some of the other html elements in the file utilize angular. I haven't ever touched Angular so I'm unsure of the Angular way to do things, but shouldn't the default way of importing Javascript into the html file work?
For reference, here's one of the default tags located in editor.html:
I have no idea where ctrl.render() is located...my guess is within module.js but I haven't seen any imports or reference to a "render" besides this line in a class "GlobeCtrl" within module.js.
Am I missing something obvious, or is this something specific to Angular/the plugin itself?
/*
... Some other code
*/
...Farther down
updateViewerHeight = () => {
// Cesium needs a fixed height to correctly size its canvas
this.viewer.container.style.height =${Math.ceil(this.height)}px;
// Add a small delay to ensure the rectangle is correclty displayed
window.setTimeout(() => {
this.viewer.camera.setView({
destination: rectangle,
});
}, 100);
}
The text was updated successfully, but these errors were encountered:
Has anyone tried to add to the base code in the past? All I require is a means of reading user input, the code I added I can figure out myself. I'm moreso confused as to how the javascript interacts with editor.html since I don't see any <script> tags in there.
I am attempting to slightly modify the plugin.
In essence, I need to create some additional fields in the editor.html file. When a user enters information in those fields, I will take their responses and use them to produce a series of layers that the plugin will interpret to make a 3D Globe on the rendering screen above the inputs.
My issue is I do not know how to do this. In the codebase there is no index.html file that contains scripts that normally would be included in an index.html file. In fact, the editor.html file doesn't contain any "head" or "body" tags.
What I've tried to do is first to create a simple function in monitor.js, like so:
updateBaseURL = () => { const url = document.getElementById('wms_base_url').value; console.log(url); }
The corresponding html looks like this:
At the very bottom of the file, I attempted to link the module.js file to editor.js like so:
<script src="module.js"></script>
I've tried all sorts of filepaths for the src...relative file path, absolute, local. I did every combination I could think of that people would do to normally link external js files to html files. The end result is always the same whenever I type into the field I made:
All that I need to do is get the input that the user is typing in. Talking to a colleague of mine, he noticed that some of the other html elements in the file utilize angular. I haven't ever touched Angular so I'm unsure of the Angular way to do things, but shouldn't the default way of importing Javascript into the html file work?
For reference, here's one of the default tags located in editor.html:
I have no idea where ctrl.render() is located...my guess is within module.js but I haven't seen any imports or reference to a "render" besides this line in a class "GlobeCtrl" within module.js.
Am I missing something obvious, or is this something specific to Angular/the plugin itself?
The text was updated successfully, but these errors were encountered: