Creating a Test LocalInfo Project
Astun can supply a test project to allow you to see the LocalInfo Request in action. You need to copy the DLL from the Astun.iShareMaps.Controls folder to the ~bin folder, set up the project in IIS, compile the project and then call one of the pages depending on what response you have set up.
XML
The xml.aspx page has two controls, one of which uses the standard xsl to render the data, and one which uses a custom one which you can use to render the content more in a format more suitable to yourself. This shows how the controls work, but also that you can have more than one control per page.
JSON
The json.aspx page has two JavaScript scripts on it. The first of which requests a layer (remember, we can’t use a layergroup with JSON yet), and it blindy outputs the council tax data specified in the dataSelector parameter into the control reference that was passed in.
The second script is a little bit more involved, but it allows more control of the output. The dataSelector in this version is actually an anonymous function which you can write and determine how and what planning information should be output.