The Scanyp code map widget permits to add a code map in your custom page.
The code map widget sample is accessible from the folder $ScanypInstallFolder/extnsions/CodeMapSample.
Here's a sample of integrating a code map in the extension:
The queries used as a parameter of the code map could be managed from the Admin->Queries tab.
You can use an existing query or create a new one from the admin area.