Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#9241 profile en long #9242

Closed
wants to merge 10 commits into from
Closed

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Jun 21, 2023

Description

This pr introduce a new plugin called longitudinal plugin that works in combination of a new wps process gs:LongitudinalProfile that can be found here

to review this locally i suggest to install that jar in a local geoserver proxying to it and publish sfdem layer too,, you can found it here

also by default this is not enabled in main viewer and
can only added in a context

it should also not conflict with the current similar implementation here

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

#9241

What is the new behavior?

Now you can use the longitudinal profile plugin needs wps on geoserver

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@MV88 MV88 added this to the 2023.02.00 milestone Jun 21, 2023
@MV88 MV88 requested a review from allyoucanmap June 21, 2023 08:43
@MV88 MV88 self-assigned this Jun 21, 2023
@MV88 MV88 marked this pull request as ready for review June 21, 2023 09:27
@tdipisa tdipisa linked an issue Jun 21, 2023 that may be closed by this pull request
25 tasks
Copy link
Contributor

@allyoucanmap allyoucanmap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this implementation is following the structure of the StreetView one. If so I think all related actions, reducers, epics and selector should be included in a folder called LongitudinalProfileTool that export as index the plugin

  • I'm seeing changes in the icon files but there is not a new svg icon file added to the folder

@@ -1,3 +1,4 @@

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems related to a different PR #9188.
I think if we are not publishing the new package this should be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think i have to recreate my master branch to fix this

will force push without it

@@ -29,6 +29,6 @@
"eslint": ">= 7.5.0",
"eslint-plugin-import": ">= 2.20.2",
"eslint-plugin-no-only-tests": ">= 2.3.1",
"eslint-plugin-react": ">= 3.3.2"
"eslint-plugin-react": ">= 7.31.11"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sime for this file:

This change seems related to a different PR #9188.
I think if we are not publishing the new package this should be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, going to remove

web/client/epics/maplayout.js Outdated Show resolved Hide resolved
web/client/epics/longitudinalProfile.js Outdated Show resolved Hide resolved
web/client/themes/dark/variables.less Show resolved Hide resolved
web/client/themes/default/ms-variables.less Show resolved Hide resolved
web/client/themes/default/ms-variables.less Show resolved Hide resolved
@allyoucanmap
Copy link
Contributor

allyoucanmap commented Jun 22, 2023

  • Noted with @MV88 that the draw tool should be disabled in 3D viewer

image

  • Review styling using geostyler format to make the style work in 3D mode

Copy link
Member

@tdipisa tdipisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The layout of the PDF exported should be reviewed. At the moment the map is too small and the chart to big with loss of resolution. The layout should be the opposite as requested (see internal requirements document).

Copy link
Member

@tdipisa tdipisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This UI is not correct

image

  1. Use Profile layer instead of Referential as field name
  2. The font size should be the same for all fields (also in tool settings)
  3. Margins around the form should be better handled

image

Copy link
Member

@tdipisa tdipisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few additional points:

  1. If you expand the chart you can't collapse it
  2. The plugin button in the sidebar is not always rendered when you load the viewer. Maybe something connected to how the plugin lazy loading is implemented. This should be reviewed.
  3. When you deactivate the long profile tool, the identify is not reactivated. They are not properly mutually exclusive and the deactivation of the long profile button is not well handled in one case since the button is toggled but the tool is not effectively active (see the video below)

long_profile

@tdipisa tdipisa requested a review from offtherailz June 26, 2023 08:26
@MV88
Copy link
Contributor Author

MV88 commented Jun 26, 2023

The layout of the PDF exported should be reviewed. At the moment the map is too small and the chart to big with loss of resolution. The layout should be the opposite as requested (see internal requirements document).

how about this one ?

Longitudinal profile_modified.pdf

@MV88
Copy link
Contributor Author

MV88 commented Jun 26, 2023

1. If you expand the chart you can't collapse it

fixed locally

2. The plugin button in the sidebar is not always rendered when you load the viewer. Maybe something connected to how the plugin lazy loading is implemented. This should be reviewed.

do you have a way to constantly reproduce this? It does not happen to me.

3. When you deactivate the long profile tool, the identify is not reactivated. They are not properly mutually exclusive and the deactivation of the long profile button is not well handled in one case since the button is toggled but the tool is not effectively active (see the video below)

i have this to check now and then I can submit a new PR

@tdipisa
Copy link
Member

tdipisa commented Jun 26, 2023

The layout of the PDF exported should be reviewed. At the moment the map is too small and the chart to big with loss of resolution. The layout should be the opposite as requested (see internal requirements document).

how about this one ?

Longitudinal profile_modified.pdf

There is too much empty space at the bottom. You can do the chart and the map a little bit bigger to cover also this

@tdipisa
Copy link
Member

tdipisa commented Jun 26, 2023

  1. The plugin button in the sidebar is not always rendered when you load the viewer. Maybe something connected to how the plugin lazy loading is implemented. This should be reviewed.

do you have a way to constantly reproduce this? It does not happen to me.

long_profile_1

I'm on tomcat. This is a map created from a context. The same problem happens at context level:

  • you create a context
  • right after you open it from the context admin list
  • the plugin is not there
  • you reload the browser page and the plugin is there that time

@MV88
Copy link
Contributor Author

MV88 commented Jun 26, 2023

It seems this implementation is following the structure of the StreetView one. If so I think all related actions, reducers, epics and selector should be included in a folder called LongitudinalProfileTool that export as index the plugin

probably you are right, it's a tedious fix but I can make this, in 2h
@tdipisa do I have to do it?

I'm seeing changes in the icon files but there is not a new svg icon file added to the folder

fixed, there is no new icons but I have not removed the new generated files. not an issue then

@MV88
Copy link
Contributor Author

MV88 commented Jun 26, 2023

closed in favor of this #9253

@MV88 MV88 closed this Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Longitudinal profile plugin
3 participants