Strand Map Service

Example Code

These example clients illustrate how the API is used to create a custom page. The clients may be downloaded and used as a template for starting a new page.

Clients:

  • Example 1 - Displays a map and shows summary information including which strand the benchmark belongs to in the information bubble when the user selects a benchmark in the map. Demonstrates how to include the Top Picks and student misconception research tabs and how to choose which NSDL collections to search over. Also demonstrates how to place custom annotations next to benchmarks, strands, grades and viewable area of the map, which in this example displays the total number of NSDL Top Pick resources for each.
  • Example 2 - Access data in JSON form and displays information about benchmarks and the parent nodes for a given benchmark, Pulls in HTML, video and a Google map to the information bubble using AJAX. It also shows how to display custom content in the print view and to display a simple help screen for the user.
  • Example 3 - Displays a single map using an iframe, and selects a specific collection for resources. Two examples are provide to demonstrate how to use an ASN ID, or just the SMS-BMK id to reference the benchmark and render the corresponding map.
  • Example 4 - Provides access to a subset of maps with a custom strand selector.