-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marc Rempel
committed
Jul 6, 2022
1 parent
fee2bea
commit 18060e3
Showing
24 changed files
with
446 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.TypeScript.MSBuild" version="4.6.4" targetFramework="net48" developmentDependency="true" /> | ||
</packages> |
27 changes: 27 additions & 0 deletions
27
AMD_Modules/src/OE_WildfireRiskLegend/CSS/OE_WildfireRiskLegendModule.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
.region .view.TemplateModuleView.active { | ||
margin: 0; | ||
}*/ | ||
|
||
.wildfire-legend-view { | ||
position: absolute; | ||
z-index: 100; | ||
width: 80px; | ||
right: 3px; | ||
background: white; | ||
color: black; | ||
padding: 6px; | ||
border: 1px solid #333; | ||
margin-top: 75px; | ||
margin-right: 2px; | ||
} | ||
|
||
.wildfire-legend-view:hover { | ||
cursor: pointer; | ||
} | ||
|
||
@media only screen and (max-width: 600px) { | ||
.wildfire-legend-view { | ||
margin-top: 3px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"language-hello-world-greeting": "Hello, world.", | ||
"language-hello-world-initialized": "Hello world! Template module initialized." | ||
} |
31 changes: 31 additions & 0 deletions
31
AMD_Modules/src/OE_WildfireRiskLegend/OE_WildfireRiskLegendModule.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
} | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
exports.__esModule = true; | ||
/// <reference path="./../../_Definitions/Essentials.AMD.d.ts" /> | ||
/// <reference path="./../../_Definitions/Framework.AMD.d.ts" /> | ||
/// <reference path="./../../_Definitions/Framework.UI.AMD.d.ts" /> | ||
/// <reference path="./../../_Definitions/Mapping.Infrastructure.AMD.d.ts" /> | ||
var ModuleBase_1 = require("geocortex/framework/application/ModuleBase"); | ||
var OE_WildfireRiskLegendModule = /** @class */ (function (_super) { | ||
__extends(OE_WildfireRiskLegendModule, _super); | ||
function OE_WildfireRiskLegendModule(app, lib) { | ||
return _super.call(this, app, lib) || this; | ||
} | ||
OE_WildfireRiskLegendModule.prototype.initialize = function (config) { | ||
alert(this.app.getResource(this.libraryId, "language-hello-world-initialized")); | ||
}; | ||
return OE_WildfireRiskLegendModule; | ||
}(ModuleBase_1.ModuleBase)); | ||
exports.OE_WildfireRiskLegendModule = OE_WildfireRiskLegendModule; |
1 change: 1 addition & 0 deletions
1
AMD_Modules/src/OE_WildfireRiskLegend/OE_WildfireRiskLegendModule.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
AMD_Modules/src/OE_WildfireRiskLegend/OE_WildfireRiskLegendModule.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/// <reference path="./../../_Definitions/Essentials.AMD.d.ts" /> | ||
/// <reference path="./../../_Definitions/Framework.AMD.d.ts" /> | ||
/// <reference path="./../../_Definitions/Framework.UI.AMD.d.ts" /> | ||
/// <reference path="./../../_Definitions/Mapping.Infrastructure.AMD.d.ts" /> | ||
import { ModuleBase } from "geocortex/framework/application/ModuleBase"; | ||
import { ViewerApplication } from "geocortex/infrastructure/Viewer"; | ||
|
||
export class OE_WildfireRiskLegendModule extends ModuleBase { | ||
|
||
app: ViewerApplication; | ||
|
||
constructor(app: ViewerApplication, lib: string) { | ||
super(app, lib); | ||
} | ||
|
||
initialize(config: any): void { | ||
//alert(this.app.getResource(this.libraryId, "language-hello-world-initialized")); | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
AMD_Modules/src/OE_WildfireRiskLegend/OE_WildfireRiskLegendView.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div data-binding="{@event-onclick:toggleWildfireLegend}" class="wildfire-legend-view" title="Toggle Wildfire Risk Classification Legend"> | ||
<h4>Wildfire Risk</h4> | ||
<div data-binding="{@visible:showLegend}"> | ||
<hr /> | ||
<img src="https://tools.oregonexplorer.info/OE_HtmlViewer/Resources/Images/Custom/wildfire2022_risk_legend.png" alt="Wildfire Risk Legend" /> | ||
</div> | ||
</div> |
32 changes: 32 additions & 0 deletions
32
AMD_Modules/src/OE_WildfireRiskLegend/OE_WildfireRiskLegendView.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
AMD_Modules/src/OE_WildfireRiskLegend/OE_WildfireRiskLegendView.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
AMD_Modules/src/OE_WildfireRiskLegend/OE_WildfireRiskLegendView.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// <reference path="./../../_Definitions/Essentials.AMD.d.ts" /> | ||
/// <reference path="./../../_Definitions/Framework.AMD.d.ts" /> | ||
/// <reference path="./../../_Definitions/Framework.UI.AMD.d.ts" /> | ||
/// <reference path="./../../_Definitions/Mapping.Infrastructure.AMD.d.ts" /> | ||
import { ViewBase } from "geocortex/framework/ui/ViewBase"; | ||
import { ViewerApplication } from "geocortex/infrastructure/Viewer"; | ||
import { OE_WildfireRiskLegendViewModel } from './OE_WildfireRiskLegendViewModel'; | ||
|
||
export class OE_WildfireRiskLegendView extends ViewBase { | ||
|
||
app: ViewerApplication; | ||
viewModel: OE_WildfireRiskLegendViewModel; | ||
|
||
constructor(app: ViewerApplication, lib: string) { | ||
super(app, lib); | ||
} | ||
|
||
toggleWildfireLegend = function (_event: any, _element: any, _context: any) { | ||
console.log('toggling!', this.viewModel); | ||
this.viewModel.showLegend.set(!this.viewModel.showLegend.get()); | ||
return true; | ||
}; | ||
} |
Oops, something went wrong.