Use current geocortex map in report
Hi,
How do I use the current geocortex map - including the visible layers and markups on a reporting5 report? I can only see instructions on using something that has no reference to the current geocortex session a user is running the report from.
Belinda
-
I have the same question. I could recreate the layer themes we use in our reports in AGO so that all the reference layers show up in the report, however my users want to see the buffer Geocortex draws to select the features.
0 -
I'm with you! How is it that a Latitude product requires that maps in a report be created solely in ArcGIS Online and not from their own product (HTML5 Viewer)? I get wanting the ability to leverage the functionality of both products, but this seems only half done.
0 -
did anyone ever get an answer to this?
0 -
Geocortex made a nice video tutorial about this topic :
https://www.youtube.com/watch?v=yOmWAsHbhp0&list=PLTjPVjeiNQigDLcr7yi_xrzzmFfzFwOoH&index=46
Enjoy
0 -
Thanks for the link, they reference a sample New Hampshire website that includes the graphics, but don't show how to include the graphics layer, any idea on how to include the graphics layer? thanks
0 -
When you create your area (or whatever), you have to :
- create a feature of it ( Create feature)
- Create a markup ( Create Value and Set property to contain your geometry ($feature.feature.geometry) and a symbol
Then, when you send your web request to export the map, you have to put your $markup.result into the request like that (in the JSON field) :
={
"f":"pjson",
"outputFormat": "PNG",
"bbox": $mapExtent.extent.xmin + "," + $mapExtent.extent.ymin + "," + $mapExtent.extent.xmax + "," + $mapExtent.extent.ymax,
"layers": $Layers.result,
"layerDefinitions": {"x":{"y":$condition.result}},
"graphics":$createdMarkup.result,
"imageWidth": "800",
"imageHeight": "800",
"scale": xxxx}
Enjoy !
0 -
Thank you, I was able to get it to work using your instructions.
0 -
Hi!
I am trying to do the same, but can't seem to get the graphic in the image..
The process is like this:
I can see that the graphic is logged to the console as well as the symbology:
Do you have any immediate thoughs? Wwhat I have done wrong?
0 -
@Kristine Smaadal? Sorry but I can't see any feature created. You really have to have a "Create feature" activity...
0 -
@Guillaume Ruelle? Thank you for answering. I have the create feature activity earlier in the workflow.
I am using this in the Create Value activity (naming it markup):
So I actually have the feature.. Not sure why it doesnt appear..
0 -
@Kristine Smaadal?
Were you able to get this working? I am having the same issue you are.
0 -
@Kristine Smaadal?
I was able to get it working.
In the Create Value you need to pass the geometry and symbol like so:
={"layers": [{
"elements": [{
"geometry":$getFeatureGeometry.geometry,
"symbol": {
"color": [255, 73, 73,100],
"outline":
{"color":[255, 73, 73, 255],
"width": 2,
"type": "esriSLS",
"style": "esriSLSSolid"},
"type": "esriSFS",
"style": "esriSFSSolid"
}
}]
}]
}
0 -
If your organization is licensed for Reporting and Printing you can make use of the Map Picture Box control to show the visible layers and any markup and selections that the user has made. https://docs.geocortex.com/reporting/latest/help/Default.htm#shr/help/map-picture-box-control.htm%3FTocPath%3DControl%2520Reference%7C_____12
0
Please sign in to leave a comment.
Comments
13 comments