Feature map with north arrow etc
I've successfully been able to create a feature map in my parcel report, but now I'd like to add some map elements to it, including a north arrow, the scale bar, etc.
Previously I had my feature map in the main part of the report but when I added the additional map elements they did not show up visible in the report, although the report was running OK without any errors. The map elements were on top of the everything else (I right-clicked and did 'send to front'). I was using the correct names for them, eg.
DataField=ParcelFeatureMap for the feature map control itself
(Name) = Map1
DataField = _NorthArrow, (Name) = _NorthArrow, for the north arrow control.
But they were not visible on the map.
So then I looked on this forum and found that when you use a map in a report it treats the elements of the report itself as a dataset and the set of map elements as a datatable, and so you need to use a sub-report for the map.
So then I revamped my report and now I have a sub-report control in my main report template that has:
ReportName= MapSubReport
Tag= ParcelMap.rpx
(Name) = MapSubReport
Inside my ParcelMap.rpx report template I have my map control with:
DataField = ParcelFeatureMap.
(Name) = MainMap
When I run this it crashes and gives an error: Specified datatable 'MapSubReport' does not exist in the dataset.
I've also tried changing ParcelMap.rpx as follows:
DataField = _MainMap
When I run this it also crashes but with a different error: Generating a map image for a map-to-dataset transformation failed because the Map reference was null.
So I've tried three different ways of doing this and none of them work.
Can anyone help?
Mark
-
Mark, have you sorted out this?
regards,
Jack
0 -
This was a year ago. As far as I can remember, I wasn't able to solve the problem. Do you know what I was doing wrong?
Mark
0 -
Hi Mark,
Unfortunately I don't have the answer either. I was going to do the same thing adding the legend to feature map in report. I know you have to use subreport in order to pass variables from workflow to report using dictionary object. But not whether it works for map element. Hope someone from Latitude can help.
regards,
Jack.
0 -
Hi Jack, did you figure out the legend? 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer