Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Plugin print preview map demo #1106

Merged
merged 3 commits into from
Sep 12, 2018
Merged

Plugin print preview map demo #1106

merged 3 commits into from
Sep 12, 2018

Conversation

caseycesari
Copy link
Contributor

Overview

Add a print preview map to the identify point plugin. This serves as a demo to plugin developers of how to add a print preview map to the plugin print workflow.

Also, make some adjustments to the optional print images and map size for the plugin to compensate for the new sizing units.

Connects #1103

Demo

image

Testing Instructions

  • Open up the identify point plugin
  • Click the print button
  • Verify there is a map in the print modal.
  • Reposition the map, click print, and verify the browser print preview shows the map in the new position.

Without this check, adding a layer from the plugin print demo would
sometimes result in an error. This is either a result of upgrading to
3.25 or an existing bug that wasn't surfaced previously.
@kellyi
Copy link
Contributor

kellyi commented Sep 12, 2018

Taking a look at this!

@kellyi
Copy link
Contributor

kellyi commented Sep 12, 2018

I see the map in the modal:

screen shot 2018-09-12 at 10 17 17 am

I think we should also adjust the modal's height to make it so the map and the print button are visible without having to scroll.

@caseycesari
Copy link
Contributor Author

Cool. Will do.

@caseycesari
Copy link
Contributor Author

Pushed a fixup commit that makes the modal a bit taller. You still need to scroll to see all of the content because if the modal was any larger, it would be cut-off on my 13" laptop screen.

Relatedly, there is an issue to improve the modal sizing: #1042

@caseycesari
Copy link
Contributor Author

image

@kellyi
Copy link
Contributor

kellyi commented Sep 12, 2018

👍 Cool, this is working well.

Copy link
Contributor

@kellyi kellyi left a comment

Choose a reason for hiding this comment

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

LGTM!

@kellyi kellyi assigned caseycesari and unassigned kellyi Sep 12, 2018
@caseycesari
Copy link
Contributor Author

Thanks for the review!

Add a print preview map to the identify point plugin. This serves as
a demo to plugin developers of how to add a print preview map to the
plugin print workflow.

Also, make some adjustments to the optional print images and map size
for the plugin to compensate for the new sizing units.

Refs #1103
@caseycesari caseycesari force-pushed the cpc/print-preview-demo branch from 8254451 to 7407db7 Compare September 12, 2018 18:45
@caseycesari caseycesari merged commit f81cf71 into develop Sep 12, 2018
@caseycesari caseycesari deleted the cpc/print-preview-demo branch September 12, 2018 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants