Highlighted Feature in Report Map
Hi all,
The highlighted feature is not showing on the mappicturebox that I have in my feature report. There is a feature action in studio web to call a workflow that runs a run report activity. The basemap, layers, and markup show up, but not the highlight itself. Am I missing a step or is that expected?
Thanks,
David
-
Just checking again if anyone has any suggestions on this. Looking to add the graphics for the highlighted feature in the results of a studio web map to the map picture box in the report. Map shows up fine just not the graphics of the feature used to create the report.
Thanks
0 -
Hey David Major the issue here is that Feature Picturebox is generated at runtime on the report by the Chromium engine that Reporting uses and isn't technically the same as what the user sees in an existing viewer session. That highlight, which comes from the graphics layer, wouldn't show up as it's not being passed into the report for generation.
What you could do here is instead use a Get Map Screenshot to get the map state (including that graphics layer) and then pass it into the Run Report as a base64 encoded parameter. The report would then be able to use the
Base64Decode
function to apply the image input parameter to a Picture Box control.Anecdotally, I've also found this to be a performance savings as we don't need to wait for the Chromium engine to generate that feature and are just decoding an existing screenshot.
0 -
Hi Gareth Evans,
I got this mostly working following your suggestion.
To get the right sized screenshot I'm testing the client height and width then adjusting the screenshot accordingly, to accommodate for mobile devices.
This works when I simulate a small screen using the browser developer tools, however the Get Map Screenshot fails when run it on an iOS browser (Chrome or Safari). I'm not sure how to check the browser console on a phone so am a little stuck. Any suggestions?
David
0 -
Hey David Major glad you're making progress, though sorry to hear you're debugging on iOS or iPadOS as that is a bit of a pain. Typically you need a macOS computer connected to the device via a cable. From there, you open up Safari and use the Developer tools to connect to the device and get to the logs that way.
That being said, I did a quick search in our bug tracker and found we've already identified this issue and filed bug 201497: "VSW is unable to run Get Map Screenshot activity (iOS devices)". This was reported internally, so there are no stakeholders on it currently.
The error in Safari dev tools will look like this:
Not a super helpful error message. From what we can tell, an object that we're expecting to return with an output is returning undefined.
The fact that there are no stakeholders on this bug item means that it will get less attention than if you were to get listed as a specific stakeholder on it. I'd suggest reaching out to Support (vertigisstudio-support@vertigis.com) and describing your issue and mention that you'd like to be added as a stakeholder on bug 201497. That'll at least raise the priority of the issue to our development team.1
Please sign in to leave a comment.
Comments
4 comments