Setting up the Project

  1. Open Visual Studio (2015 in this sample).
  2. Create an empty Class Library project.
  3. Add a reference to Cadcorp.Web.UI.dll, Cadcorp.Web.UI.Common found in the WebMap ‘bin’ folder.
  4. Add a reference to System.Web in the .NET Framework.

Defining an Extender Component

  1. Create a new class called MeasureExtenderComponent, implementing the interface Cadcorp.Web.UI.Interfaces.IWMLExtenderComponent.
  2. IWMLExtenderComponent defines the available properties for an Extender Component. If implementation does not required any of these properties, then return null or false (if Boolean).
  3. Some of the IWMLExtenderComponent properties are hard-coded and correspond to values defined in ‘WebMap/map.aspx’, this is subject to change in future versions of Cadcorp SIS WebMap.
  4.  Using IWMLExtenderComponent, you can load any of the following:
    • OpenLayers map controls,
    • Dialogs (and Admin dialogs),
    • Menu items (and Admin menu items),
    • Tool strip buttons
  5. An IWMLExtenderComponent can be loaded into the Admin page or into the Map page by changing the return value of the IsAdminControl property.
3. Adding a Menu Item and Dialog Control to Map.aspx