Skip to content

Commit

Permalink
MMGIS 2.6.0 (#160)
Browse files Browse the repository at this point in the history
* Added function to set initial layer times based on current time

* Remove debug print out (#126)

* #127 DrawTool - enable panning around without dropping points while d… (#128)

* #127 DrawTool - enable panning around without dropping points while drawing

* DrawTool - make active layer deselectable

* DrawTool - Fix uploaded file edit panel

* #129 BottomBar UI Visibility Modal (#130)

* Fix PUBLIC_URL configure urls (#131)

* env comment on DB_HOST in docker

* Fix controlled layer returning null

* Sublayers on Controlled Layers

* #134 - Any Projection Image Marker Attachments (#137)

* #139 Control Raster Filters in LithoSphere (#140)

* Update litho to css friendly filter effects

* #138 Projection agnostic Uncertain Ellipses, touch ups (#141)

* Minor colorramp dropdown fix

* leaflet-imagetransfrom map check

* Dockerfile node:16 (#145)

* Update README.md

Node 10.10 -> Node 14.9.0

* Implement webhooks feature (#146)

* First implementation of webhooks

* Remove webhooktoken field

* Reorganize files and functions

* Clean up webhook cards

* Add routes for testing webhooks when using development environment

* Fix Config subpage scrollbar issue

* Fix delete button

Co-authored-by: Tariq Soliman <[email protected]>

* Added docs for how to use remote virtual layers via GDAL

- Also updated Measure Tool to support remote DEMs

* A bit more info on gdalwmscache directory in docs

* Remote_Virtual_Layer typo fixes

* Curtain Support (#152)

* Curtain part 2

* rgrams styles

* Touch ups

* Use litho 1.3.0

* #151 Support 3D Uncertainty Ellipses on Point Features (#153)

* 3D Uncertainty ellipses

* #151 Upgrade lithosphere, more uncertainty ellipse options, docs

* Fix minor bugs (#155)

* Upgrade litho

* Litho 1.3.2

* Litho 1.3.3

* Add LineString functions (#156)

* Add function to trim layers containing LineString features

* Add appendLineString function and clean up trimLineString function

* Remove debug code

* Minor fixes

* Add args to dockerfile so PUBLIC_URL can be specified at image build time (#157)

Co-authored-by: David Lees <[email protected]>

* Update the globe when vector layers are modified (#158)

* Update the globe when vector layers are modified

* Remove extraneous code

* Remove extra variable

* Fixed vector time updates not actually refreshing when told to reload (#159)

* Dropdowns can expand up, draw tests

* Bump to 2.6.0

Co-authored-by: Joe Roberts <[email protected]>
Co-authored-by: ac-61 <[email protected]>
Co-authored-by: dsl3000 <[email protected]>
Co-authored-by: David Lees <[email protected]>
  • Loading branch information
5 people authored Mar 16, 2022
1 parent 375a6aa commit 58fc382
Show file tree
Hide file tree
Showing 70 changed files with 3,445 additions and 1,402 deletions.
5 changes: 4 additions & 1 deletion API/Backend/Config/setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const router = require("./routes/configs");
const triggerWebhooks = require("../Webhooks/processes/triggerwebhooks.js");

let setup = {
//Once the app initializes
Expand Down Expand Up @@ -33,7 +34,9 @@ let setup = {
//Once the server starts
onceStarted: (s) => {},
//Once all tables sync
onceSynced: (s) => {},
onceSynced: (s) => {
triggerWebhooks("getConfiguration", {});
},
};

module.exports = setup;
14 changes: 14 additions & 0 deletions API/Backend/Draw/routes/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const { sequelize } = require("../../../connection");

const router = express.Router();
const db = database.db;
const triggerWebhooks = require("../../Webhooks/processes/triggerwebhooks");

router.post("/", function (req, res, next) {
res.send("test draw");
Expand All @@ -41,6 +42,7 @@ const uniqueAcrossArrays = (arr1, arr2) => {

const pushToHistory = (
Table,
res,
file_id,
feature_id,
feature_idRemove,
Expand Down Expand Up @@ -88,6 +90,10 @@ const pushToHistory = (
Table.create(newHistoryEntry)
.then((created) => {
successCallback();
triggerWebhooks("drawFileChange", {
id: file_id,
res,
});
return null;
})
.catch((err) => {
Expand Down Expand Up @@ -239,6 +245,7 @@ const clipOver = function (
if (i >= results.length) {
pushToHistory(
Histories,
res,
req.body.file_id,
newIds,
oldIds,
Expand Down Expand Up @@ -378,6 +385,7 @@ const clipUnder = function (
if (i >= results.length) {
pushToHistory(
Histories,
res,
req.body.file_id,
newIds,
oldIds,
Expand Down Expand Up @@ -566,6 +574,7 @@ const add = function (
} else {
pushToHistory(
Histories,
res,
req.body.file_id,
id,
null,
Expand Down Expand Up @@ -733,6 +742,7 @@ const edit = function (req, res, successCallback, failureCallback) {
if (req.body.to_history) {
pushToHistory(
Histories,
res,
req.body.file_id,
created.id,
req.body.feature_id,
Expand Down Expand Up @@ -844,6 +854,7 @@ router.post("/remove", function (req, res, next) {
//Table, file_id, feature_id, feature_idRemove, time, undoToTime, action_index
pushToHistory(
Histories,
res,
req.body.file_id,
null,
req.body.id,
Expand Down Expand Up @@ -974,6 +985,7 @@ router.post("/undo", function (req, res, next) {
.then((r) => {
pushToHistory(
Histories,
res,
req.body.file_id,
null,
null,
Expand Down Expand Up @@ -1112,6 +1124,7 @@ router.post("/merge", function (req, res, next) {
if (i >= results.length) {
pushToHistory(
Histories,
res,
req.body.file_id,
newIds,
oldIds,
Expand Down Expand Up @@ -1270,6 +1283,7 @@ router.post("/split", function (req, res, next) {
if (i >= r.length) {
pushToHistory(
Histories,
res,
req.body.file_id,
newIds,
oldIds,
Expand Down
Loading

0 comments on commit 58fc382

Please sign in to comment.