The Status Map Widget was developed as a reference application for creating mashups with the Telligent Evolution REST APIs . The widget combines usage of the status and user APIs with the Google Map API to map status updates of community members.
The source code for the Status Map widget contains the following files:
StatusMapWidget.cs is the core of the widget, the code-behind that implements ExternallyImplementedConfigurableContentFragmentBase. It has properties for the title, height, and widgth of the widget.
StatusMapWidget.css is the style sheet used by the widget for custom formatting.
StatusMapWidget.js primarily contains the custom jQuery plugin for displaying the map, retrieving the statuses and user information as JSON from the platform APIs and showing the statuses and user information on the map. The JQuery $.ajax functions handle all of the communication with the platform APIs. Various other functions are used to assist in the formatting: date parsing and formatting and adding the custom security header to the API request.
To deploy the widget to your site:
- Compile the Telligent.Evolution.SDK.StatusMapWidget project.
- Copy the Telligent.Evolution.SDK.StatusMapWidget.dll file to your Web site's bin folder.
- Copy the files in the project's Widgets folder to your Web site's /Utility/ContentFragments/Maps folder. More than likely, the Maps folder does not exist in the ContentFragments folder and you will need to create it.