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

Geos 11353 map ml default image format #367

Conversation

turingtestfail
Copy link

Checklist

For core and extension modules:

  • New unit tests have been added covering the changes.
  • Documentation has been updated (if change is visible to end users).
  • The REST API docs have been updated (when changing configuration objects or the REST controllers).
  • There is an issue in the GeoServer Jira (except for changes that do not affect administrators or end users in any way).
  • Commit message(s) must be in the form [GEOS-XYZWV] Title of the Jira ticket.
  • Bug fixes and small new features are presented as a single commit.
  • Each commit has a single objective (if there are multiple commits, each has a separate JIRA ticket describing its goal).

@turingtestfail turingtestfail force-pushed the GEOS-11353-MapML-default-image-format branch 2 times, most recently from 8b2a347 to 3ffd5b3 Compare April 26, 2024 20:28
@prushforth
Copy link
Collaborator

Looks like it saves the image setting so that it gets used in for example the WMS request dropdown, but the saved value isn't reflected in the UI when you go back into edit the layer to change it - it displays image/png always as far as I can tell.

I'll keep playing with it, let you know if I spot anything else. Thanks!

@turingtestfail turingtestfail force-pushed the GEOS-11353-MapML-default-image-format branch from 3ffd5b3 to 15e3731 Compare April 27, 2024 12:57
@turingtestfail
Copy link
Author

Looks like it saves the image setting so that it gets used in for example the WMS request dropdown, but the saved value isn't reflected in the UI when you go back into edit the layer to change it - it displays image/png always as far as I can tell.

I'll keep playing with it, let you know if I spot anything else. Thanks!

Thanks - looks like default call was overwritting model value. It is removed and is working now.

@prushforth
Copy link
Collaborator

prushforth commented Apr 27, 2024

Thanks - looks like default call was overwritting model value. It is removed and is working now.

Yep, that is saving and working fine.

I noticed that the preview text/html; subtype=mapml is not using the saved mime type:
image
...
image
...
image
...
image
...
, but the raw WMS request from the dropdown list of formats will generate a mapml document that does use the saved mime type:

image

(but it's not in the parameters of the generated link):

image

...

but is in the templated link in the mapml document:
image

I would have thought that the selected default should get put into the preview via parameters?

@turingtestfail
Copy link
Author

Thanks - looks like default call was overwritting model value. It is removed and is working now.

Yep, that is saving and working fine.

I noticed that the preview text/html; subtype=mapml is not using the saved mime type: image ... image ... image ... image ... , but the raw WMS request from the dropdown list of formats will generate a mapml document that does use the saved mime type:

image

(but it's not in the parameters of the generated link):

image

...

but is in the templated link in the mapml document: image

I would have thought that the selected default should get put into the preview via parameters?

@prushforth Just made a push that makes sure that the HTML preview gets passed the layer setting.

@turingtestfail turingtestfail force-pushed the GEOS-11353-MapML-default-image-format branch from ef7b4b5 to 77345a3 Compare April 30, 2024 15:29
@prushforth
Copy link
Collaborator

@prushforth Just made a push that makes sure that the HTML preview gets passed the layer setting.

Working very well now, thanks! I like the way it prevents changes to the default image media type while the layer is set to "Use Features". Also confirm that it works for Layer Groups.

Looks Good To Me! tm

@turingtestfail turingtestfail force-pushed the GEOS-11353-MapML-default-image-format branch from 77345a3 to 5649c70 Compare May 8, 2024 15:14
@turingtestfail turingtestfail force-pushed the GEOS-11353-MapML-default-image-format branch from 5649c70 to d32890f Compare May 20, 2024 22:52
…igurable for layers and layer groups

-Added tests for dropdown values and tile cache version

getting from enabled tile cache

added ajax

added to layergroup panel

Added document builder read and write of default mime

layer group and unit test

cleanup

removed default call

made sure default representation goes to html

pr changes

formatting
@turingtestfail turingtestfail force-pushed the GEOS-11353-MapML-default-image-format branch from d32890f to ef4e44b Compare May 21, 2024 01:10
turingtestfail and others added 3 commits May 21, 2024 18:19
…igurable for layers and layer groups

-Added tests for dropdown values and tile cache version

getting from enabled tile cache

added ajax

added to layergroup panel

Added document builder read and write of default mime

layer group and unit test

cleanup

removed default call

made sure default representation goes to html

pr changes

formatting
@prushforth
Copy link
Collaborator

@turingtestfail has this one been merged upstream? I just noticed that you requested my review some time ago, but I thought it had been merged a while back?

@aaime
Copy link
Member

aaime commented Jul 18, 2024

It has indeed been merged upstream: geoserver#7612
Closing here.

@aaime aaime closed this Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants