How can I retain viewer map scale in report?
I've got a parcel report that works nicely, however the scale in the viewer is not maintained in the report. For example, the map scale is 1:2500 in the viewer, but in the report it is 1:3233. This is not acceptable to my users.
I expect the reason is that the report tries to maintain the map extent, but because the feature map on the report is of different dimensions than the viewer map, the scale will almost always be an adjustment of the viewer map scale.
My users wish to be able to maintain the viewer's map scale in the report map. How can I enable it to? Is it even possible? Please let me know.
Thanks,
Justin
-
In Report Designer I've tried changing the SizeMode of the MainMap from Stretch to Clip, which made no difference, and I then tried Zoom, but with same result.
Striking is the fact the scales in the report match none of the cached scales, yet this is impossible for a user to achieve within the viewer.
I remain very much mystified by how to force the scale in the report to match the scale in the viewer. Will someone please explain how to do this?
Thanks,
Justin0 -
Hey Justin,
That seems weird. Do you have a public site available for us to see? What is your default print scale and do you give the user the option to choose the scale? Are there any scripts within your rpx that might be changing the scale value? Does this only happen in this one viewer? Sorry for the 20 questions, it's not something I have seen so I'm not sure how to duplicate it0 -
Okay I've emailed you the connection details 0 -
Marshall had suggested the Feature Map on the parcel layer might be the cause because of its buffer distance. Mine had been set at 0 ft, and just today I tried changing it to 250 ft, but after saving the site, reloading the viewer, and running the report on the same parcel, the scale was the same as it was with 0 ft buffer. I don't know if that should be the case.
On another note, with Marshall's help I've been able to rule out the possibility of it being a transform workflow at root of the problem. However, does anyone know whether I ought to use a transform workflow to preserve the scale? Maybe by including the ExportMap function? I mention this because Marshall pointed out that ExportMap supports a Scale argument. If I could somehow grab the current scale in the viewer and then pass it along to ExportMap, it might solve my problem. I would need to know how to get to that scale, though, if it's even possible. So I'm looking for help on that, please.0 -
In case it helps to know, my report comes out the same way whether or not Edit Report has Include Feature Maps checked. So it seems I don't even need a Feature Map on my parcel layer for my report to include a map with the selected parcel. It's just that I need a way to control the scale on that map, but I don't know how to do that. Help, please 0 -
GetMapInfo would be the way to get the scale 0 -
...except that GetMapInfo is not valid in server scope. Neither is ExportMap.
So I'm stuck. Unless it's possible in a transform workflow to have a portion this is within client scope, but that seems very doubtful to me. Can someone explain for me?0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
7 kommentarer