Crater Lake National Park

NPMap

Digital maps for the National Park Service

GoogleFusion Layer handler

The GoogleFusion layer handler supports bringing Google Fusion tables layers into maps created with NPMap. This layer handler is only supported in maps that utilize the google base API.

Supported Operations

  • Display
  • Identify
  • Routing (with route module)

Adding a Layer To Your Map

GoogleFusion layers can be added via the layers property in your NPMap.config object. Here are the properties that can be set on a GoogleFusion layer object:

Property Type Required? Description Example
query {Object} X The google.maps.FusionTablesQuery object to filter the table with. This object is required, and it must have at least one property, from specified. The from property should be the ID of the Fusion Tables table you want to display on the map. More information can be in the Google Maps API docs.

query: {
  from: '1wDiKlITwHjhvoCqKtOrnxKwesL2hFSnTdcVanw'
}
identify {Object} Used to customize the way data returned from an identify operation on this layer are displayed in the InfoBox. See the Customizing what is displayed in the InfoBox section of the NPMap.InfoBox documentation for information on this property.
name {String} X A name for this layer. Every layer added to NPMap via the layers config must have a unique name. name: 'National Parks'
type {String} X The only valid value for this layer type is GoogleFusion. type: 'GoogleFusion'