| 158 | |
| 159 | == Addendum, 11 April 2017 == |
| 160 | |
| 161 | It has been discovered using {{{QueryFeatures}}}, that the {{{MgFeatureInformation}}} returned has a {{{MgSelection}}} that cannot be interrogated in detail (ie. {{{GetLayers}}} on this selection will throw) |
| 162 | |
| 163 | The reason is the selection object is "disconnected" in that it has no internal reference to the {{{MgMap}}} it was initialized from (due to the (de)serialization of the {{{MgFeatureInformation}}} from server to web tier). There is a method {{{SetMap}}} that allows one to "attach" the original {{{MgMap}}} instance to the selection so that methods like {{{GetLayers}}} will work again, but this method is not part of the public API. |
| 164 | |
| 165 | To enable the selection within a {{{MgFeatureInformation}}} to be interrogated, the {{{SetMap}}} method will be promoted to {{{EXTERNAL_API}}} |