Call:201-556-9090 or Write:

seating charts api

Download Online Demo

Ticket Utils Seating Charts Ticket Utils jQuery plugin for Interactive & Static Seating Charts

In order for a Ticket Utils map to properly load, we need to first approve your domain beforehand. Please send us a request and we'll let you know once you are able to use the plugin. Limited Venues are Enabled in Development and Integration Testing under localhost

Overview

The following JQuery PlugIn provides for a robust and flexible framework for powering the Ticket Utils interactive and static seating chart product offering. The plugin converts the TicketsListContainer into a highly customizable ticket list and seating chart UI for powering exchanges, broker websites and major e-commerce sites.

Our JQuery PlugIn is powered by a lightweight JavaScript engine, thus our seating chart product is fully compatible with all iPhone & iPad devices.

The plugin turns selected elements into a highly customizable ticket list and seating chart UI for powering exchanges, broker websites and major e-commerce sites.

For broker powered websites, our JQuery PlugIn has the built-in intelligence to automatically retrieve the appropriate Ticket Utils seating chart by passing in the mapId from your current provider. Our mapping service supports the following providers: Ticket Technology, Ticket Network and Ticket Evolution.

For interactive maps, our JQuery PlugIn automatically interacts with the TicketList and caters to many different section name conventions to ensure the widest possible inventory support when highlighting each section zone. Advanced filtering logic has been adopted for the proper identification of "Parking", 'Suites" and "Standing Room Only" inventory. Section names that cannot be mapped are pushed to the 'Unmapped' section.

Important!!! - Upgrade to Version 2.XX

Starting from Version 2.0, We have replaced Google Maps API with a Custom Built Ticket Utils Maps Engine. Seating Charts users using prior version of jQuery Plugin will need to Upgrade to Version 2.XX, as as V1.XX will have limited support and will be deprecated in the near future.

What's New?
  • Switched from Google Maps Engine to Custom Built Ticket Utils Map Engine
  • Changes in the Data Format, Image Slices for Faster Loading and Rendering
  • Support for 4 Zoom Level with Sizes 500X, 1000X, 1500X, 2000X
  • New Sleek & Customizable Zoom Controls

Are there any Changes in the Methods, Options and Events?
No, all the publically accessible Methods, Options and Events are same. Few of those include some additional optional parameters but no new Development/Coding is required. Your existing implementation will continue to work AS IS with new engine.

How do I Upgrade to V2?
  1. Remove the Reference to Google Maps API (http://maps.google.com/maps/api/js?v=3.8&sensor=false)
  2. Include Ticket Utils jQuery Plugin V2 in your Web Page (jquery.tuMap.js)
  3. Include ExplorerCanvas Script for Internet Explorer 8.0 and Prior Support (excanvas.js)
  4. Include Updated CSS File (or Make Necessary Changes in your Custom CSS) and Copy Images for Zoom Controls (Changes for Zoom Controls)
  5. Done, You are Upgraded to V2

Online Demo

Please click the following link to view our online demo.

Integration Kit

Please click the following link to download our JQuery Plugin integration kit.

Following Venues are Enabled for Development and Testing under localhost

Venue Name Chart Name MapId
Dallas Cowboys Stadium NFL 41acdad6-87f6-4fc6-a679-96a95438b49f
PNC Park Baseball 91658d8c-fb3a-43f9-b5a5-4b8395209d81
Ralph Wilson Stadium Football 476cfb92-2ba2-4d1c-8cca-62da3cc5a42f
Staples Center Basketball b1b2c871-05a1-4e53-b8e2-e09f837ea363
United Center Basketball 13350e0f-6178-4c60-93ba-695dff371ac1

Frequently Asked Questions

1) What is the versioning strategy of the jQuery plugin?

Our jQuery Plugin sends all requests to the seating chart service with a version number attribute. This allow us to maintain backward compatibility in order to provide clients with sufficient time to upgrade their jQuery Plugin version accordingly.

For meaningful upgrade events, we will attempt to notify clients via email using the email account on record for your TicketUtils seating chart account.

2) How do I check for an updated jQuery Plugin and can this be automated?

All jQuery Plugin upgrade are well documented on the TicketUtils Seating Chart Plugin Developer Documentation page found at the following URL http://www.ticketutils.com/Resources/jQueryAPI. We suggest for all clients to periodically check this page for release updates and new functionality announcements.

Unfortunately, there is no mechanism to auto-update your jQuery Plugin version at this time.

3) Do you have sample code available to assist with the integration of the jQuery Plugin for Seating Charts to my website?

Yes, we have provided various online Demos in order to illustrate the functionality and flexibility of our jQuery Plugin and Seating Chart Framework. Further, we have also included the source code used to power our online Demos within the Developer Integration Kit. All of the code samples are enabled and preconfigured to run in a development environment using the 'localhost' hostname.

The online Demos can be found at the following URL http://chart.demo.ticketutils.com

4) How do I decide which sample code is right for me?

We recommend using the sample code from Demo #1, unless your requirements warrant pursuing one of the other demos.

5) What is the difference between using the Standard Plugin Generated Ticket List and maintaining an External List?

In a Standard Plugin Generated Ticket List, the developer is responsible for passing the tickets array and container into the Plugin. In return, the Plugin will automatically generate and maintain the List generation, sorting and filtration functions. In addition, the UI for a Standard Plugin Generated Ticket List can be further customized through the use of Formatters.

A developer will choose to use an External Ticket List when they want further control over the List generation and sorting. There are two common design approaches for interacting with External Lists, as outlined below:

Approach #1) If you want Plugin to manage the Filtration, this can be achieved by setting the appropriate Selectors (e.g. Row, Section, Quantity, Price).

Approach #2) If you prefer to manage the Filtration, this can be achieved by making proper use of OnClick, OnMouseover Plugin Events by implementing the necessary supporting code.

6) What is the difference between maintaining an External List (Demo #3) and an External List which maintains no connection to the Plugin (Demo #4)?

Answer provided in #5

Dependencies

  1. jQuery v1.7.1 or Greater
  2. ExplorerCanvas r3 (excanvas.js)

History

Date updated:Thursday, February 14, 2013

Latest version:2.1.1

  • 2.1.1 : FIX: EventId & MapId both can be passed to the Plugin. If Map is Resolved by EventId it will be served, else it will Fallback to MapId
    • New Method: ToggleAll
    • New Property: AlwaysShowTooltip
    • Change in Method: GetSelectedSections
  • 2.1.0 : Changes in Section Group Display to utilize maximum available space.(CSS Update Required)
  • 2.0.9 : FIX: Double header in ticket list when no records found.
  • 2.0.8 : FIX: Skipped Rows having 0 Quantity
    • Tooltip will be Displayed on the Corner of Section
    • Fixed Position of List Headers on Scroll
  • 2.0.7 : Fixed: Controls Container is not getting Cleared on Map Change
  • 2.0.6 : Fix for Tooltip Display Issue
    • New Option: ControlsPosition
  • 2.0.5 : CSS Fixes for Button Display Issue
    • Fixed: Map Centering (Cut-off) Issue when Container width is not specified
    • Provided Fix Width and Height when Container Height cannot be calculated (Chrome)
  • 2.0.4 : Applied CSS Class to Map Controls Container to Enable Customizations to Map Controls Position
    • Fixed: Tooltip Display Bug when Map Container is set to Relative Position
  • 2.0.3 : BUTTON Control used for Map Controls replaced by DIV
  • 2.0.2 : Optimization in List Scrolling
  • 2.0.1 : Section View Zoom Support
  • 2.0.0 : Ticket Utils jQuery Plugin v2
    • Removed Google Maps API
    • New Custom Built Ticket Utils Map Engine
    • Changes in the Data Format, Image Slices for Faster Loading and Rendering
    • Support for 4 Zoom Level with Sizes 500X, 1000X, 1500X, 2000X
    • New Sleek & Customizable Zoom Controls
  • 1.3.3 : New Argument to GetSelectedSections to get Unique Section Names
  • 1.3.2 : New Options: EventId, SeatingChartAutoCorrect
    • Support for Loading Charts by EventId and Correcting the Chart for Event (Only for TicketTechnology)
    • New Option: TooltipSectionViewSize for Customizing the Tooltip Section View Size
  • 1.3.1 : Tooltips and Section View Displayed for Selected Sections
    • Section Views kept visible on Section Selection
  • 1.3.0 : New Event: OnControlClick, New Option: ResetButtonText
  • 1.2.9 : New Event: OnReset
    • Failover to Gray Background Map if other Maps are not available
    • FIXED: Tooptil Quantity Display Problem in External List Implementation
  • 1.2.8 : Performance Enhancements in Plugin Generated List
  • 1.2.7 : Performance Optimizations & Tweaks
  • 1.2.6 : Support for Custom Mouseover Title for the Section
  • 1.2.5 : FIXED: Seating Chart Center Adjustment
  • 1.2.4 : New Method: GetSelectedSections
    • New Event: OnGroupClick
    • Support for Passing Tickets Array in External List Implementation instead of using Selectors
  • 1.2.3 : New Property: eTicketSelector, Support for eTickets Parsing from External List
    • Support for Parsing Multiple Quantities (Quantity Splits) from External List
  • 1.2.2 : Activated / Deactivated Sections on Ticket Filter Change
    • Support for Quantity Range Filter
    • Support for eTicket Filter
  • 1.2.1 : Support for Non Alphanumeric Characters in the Section
  • 1.2.0 : Support for Sections referred by Multiple Names
    • Support for Multiple Key/Legends referred by same abbreviation
    • Enhancements in Mapping Logic
  • 1.1.9 : Enhancements in Section Mapping Logic
  • 1.1.8 : Enhancements in Out of the Map Sections Mapping Logic
  • 1.1.7 : Enhancements in Section Mapping Logic
  • 1.1.6 : Disabled Groups with No Active Sections (CSS Update Required)
  • 1.1.5 : Fixed: Group is Undefined Error occurs Chart is displayed Grayed Out.
  • 1.1.4 : Filters Enabled for Custom Tickets List when Quantity and Price Selectors are Specified
    • Optimization in Section Mapping Logic
  • 1.1.3 : Fixed: Problem in Displaying Ticket List when FailoverMap is Loaded
  • 1.1.2 : New Methods: FilterTickets, AddMapControl, RemoveMapControl
  • 1.1.1 : Enhancements in Section Mapping Logic
  • 1.1.0 : New Property "ColorScheme" - Support for 3 Variations of the Chart
    • Better Mapping Logic for Suites, Courtside
  • 1.0.9 : Enhancements in Section Mapping Logic
    • Better Support for External List
    • New Property FailoverMapUrl to Load an Alternate Image in case of Error
  • 1.0.8 : New Option SectionViewTrigger to Control Display of Section View on MouseOver or Click
  • 1.0.7 : Ticket List displayed even in case of Error in loading Chart.
  • 1.0.6 : Provided Support for RowSelector, SectionSelector, PriceSelector, QuantitySelector for Interacting with External List
    • Provided Support Section View Images
    • Changes in Zooming Modes (Upgrade Required for Previous Versions)
  • 1.0.5 : Displayed E-Ticket Icon above the Tickets List
  • 1.0.4 : Support for Exact Section Name matching for Important Sections
  • 1.0.3 : Support for Preferred Tickets and eTickets
    • Other Sections like Suites, Parking will also Blink on Selection
  • 1.0.2 : Misc. Section Renamed to Unmapped
  • 1.0.1 : Added Support for Highlighting Section on Rollover of Ticket in Tickets List
    • Displaying Section Group name is Tooltip
    • Selected Section will Blink to Show the Difference from Non Selected
  • 1.0.0 : First public release

SSL Support

The plugin supports SSL Secured Connection. To enable SSL Support for use of plugin in Secured Environment, point the ServiceUrl to https://imap.ticketutils.com (See Documentation)

jQuery Reference Table of Contents


Options (Common)

ServiceUrl

Type:String
Default:http://imap.ticketutils.com
Location of Ticket Utils Charts Service. To Enable SSL Support, change ServiceUrl to https://imap.ticketutils.com
Code Example:
	$("Selector").tuMap({
	    ServiceUrl: "https://imap.ticketutils.com"
	});
	            

MapId

Type:String
Default:null
This option determines Map to load.
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	});
	            

MapType

Type:String
Default:Interactive
This Option can be used to force Static Map instead of Interactive. Even if the Value if Interactive, API may return a Static Map if Interactive Map is not available.
Code Example:
	$("Selector").tuMap({
		MapType:"Static"
	});

	            

MapSet

Type:String
Default:tu
Defines MapSet to Facilitate conversion of MapId of various Providers to valid Ticket Utils MapId. Valid values are:
  • tu - Ticket Utils
  • tt - TicketTechnology
  • tn - TicketNetwork
  • te - TicketEvolution
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, MapSet: "tu"
});
	            

EventId

Type:String
Default:null
Only Enabled for TicketTechnology Events: Set EventId for which Chart is to be Obtained. Plugin will Automatically Load the Correct Chart for the Event. If SeatingChartAutoCorrect is True, Plugin will override the Default Chart by the Provider and Load the Correct Chart.
Code Example:
$("Selector").tuMap({
	EventId: "1234"
	, MapSet: "tt"
});
	            

ColorScheme

Type:Numeric
Default:0
Defines Color Scheme of the Map MapId. Valid values are:
  • 0 - Standard (Gray Background)
  • 1 - White Background
  • 2 - Colorless
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, ColorScheme: 2
});
	         

AutoSwitchToStatic

Type:Boolean
Default:true
If true, Static map will be loaded if Interactive Map is not available.
Code Example:
$("Selector").tuMap({
    AutoSwitchToStatic: false
});

SeatingChartAutoCorrect

Type:Boolean
Default:true
Only Enabled for TicketTechnology Events: If true, Plugin will Automatically override the Default Chart for the Event and Load corrected Chart.
Code Example:
$("Selector").tuMap({
    ,EventId:"1234"
    ,MapSet:"tt"
    SeatingChartAutoCorrect: false
});

FailoverMapUrl

Type:String
Default:null
If Provided, Plugin will load the specified Image in case of Error in Loading Ticket Utils Chart
Code Example:
$("Selector").tuMap({
    FailoverMapUrl: "Url Here";
});

ZoomLevel

Type:Numeric
Default:1
This option sets the Zoom Level of the Map.
  • Minimum: 1 (512px X 512px Map)
  • Maximum: 3 (2084px X 2084px Map)
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , ZoomLevel: 2
	});
	            

GroupsContainer

Type:String
Default:null
Sets the Container for Section Groups/Legends List.
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , GroupsContainer: "#GroupsList"
	});
	            

Tickets

Type:Object
Default:null
Holds an Items Array containing List of Tickets, for Plugin Generated List each Ticket Object must include all the Columns Defined in the Columns Option. Following are the Default Support properties of Ticket Object. One may also add Custom Columns and include Column Key in Ticket Object

For External Ticket List implementation without using the Selectors i.e. when interaction between Chart and the List is handled by the Developer, this Option can be used to Highlight the available sections. In this case only Section, Price (Start Price in the Section) and Quantity (Max. Quantity in the Section) can be passed to Highlight and Enable the Tooltip.


Property Type
id String A Unique Identifier for each Ticket. This will be passed back in Ticket Select callback.
section String Section Value e.g. "101", "Lower 101", "l101", "101l"
row String Row Value
quantity Numeric / Array Can be a Numeric value e.g. 2 or Array of Quantity Splits available e.g. [4,2].
If Quantity Array is passed, Plugin will render a Dropdown List in the Tickets List.
price Numeric / String Price can be numeric e.g. 300 or may also include the Currency Symbol e.g. $300
notes String
preferred Boolean True, if Ticket is to be Marked and Filtered as Preferred Ticket
eticket Boolean True, if E-Ticket
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , Tickets:[
	        { id:"1", section: "101", row: "A", quantity: [1,2,4]
                    , price: "$100", notes: "Some Notes"},
	        { id:"2", section: "l101", row: "B", quantity: 2
                    , price: "$110", preferred:true},
	        { id:"3", section: "Lower 101", row: "C", quantity: 3
                    , price: "$140", eticket:true}
		]
	});
	            

TicketsFilter

Type:Object
Default:{ MinPrice: 0, MaxPrice: 0, Quantity: 0, eTicket:false }
Set the Filter for the Tickets List. If Quantity is Set to Numeric value, it will perform Exact Match. If set to string value like "2+" is will return all tickets above the specified quantity. If Quantity range is passed like "1-3" it will filter on the Quantity greater than 1 and lesser than 3
Code Example (Quantity Greater than):
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , TicketsFilter: {
			MinPrice: 20
			, MaxPrice: 100
			, Quantity: "2+"
		}
	});
	
Code Example (Quantity Range):
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , TicketsFilter: {
			MinPrice: 20
			, MaxPrice: 100
			, Quantity: "1-3"
		}
	});
	
Code Example (eTicket Filter):
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , TicketsFilter: {
			eTicket: true
		}
	});
	

TooltipFormatter

Type:Function
Default:Default Formatter
Define Custom formatter for the Section Tooltip
Callback Parameter Type
Section String Section Name
Mappings Array Array of Section Names in the Ticket Inventory which are Mapped to this Section.
Quantity Numeric Quantity of Tickets available in the Section
MinPrice String Minimum Price of the Ticket in that Section
MaxPrice String Maximum Price of the Ticket in that Section
Group Object Group Object with Name and Group Name Alias Array
Active Boolean True if Section is having Tickets
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, TooltipFormatter:function(Data){
	    var Code = "";
	    Code += 'Section ' + Data.Section + '';
	        if (Data.Active) {
	            Code += '' + Data.Quantity + '';
	            Code += ' ticket(s) available from ';
	            Code += Data.MinPrice;
	        }
	        else {
	            Code += 'No Tickets currently available for this Section';
		    }
	    return Code;
	}
});
	            

SectionViewContainer

Type:String
Default:null
Set the Container for Displaying Large Section View Image on Mouseover of the Section. Image will be Auto adjusted to fit the Section View Container.
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, SectionViewContainer:"#SectionViewContainer"
});
	            

SectionViewTrigger

Type:String
Default:mouseover
Set the action that will display Section View in the Container specified using SectionViewContainer. Possible values are "click","mouseover"
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, SectionViewTrigger:"click"
});
	            

TooltipSectionViewSize

Type:Integer
Default:250
Set the Size of Section View in the Tooltip. Possible values are 250, 500, 1000, 1500
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, TooltipSectionViewSize:500
});
	            

EnableTooltipSectionView

Type:Boolean
Default:true
Set whether Section View is to be Displayed in Tooltip. If using External Section View Container, set this to false.
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, EnableTooltipSectionView:false
});
	            

AlwaysShowTooltip

Type:Boolean
Default:false
If true, Tooltip will be displayed even if Section is having '0' tickets mapped.
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, AlwaysShowTooltip:true
});
	            

ResetButtonText

Type:String
Default:Reset
Set the Caption of Reset Button
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, ResetButtonText:"Reset Map"
});
	            

ControlsPosition

Type:String
Default:Inside
Set the Position of Map Controls (Inside: Over the Map, Outside: Outside Map Container)
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, ControlsPosition:"Outside"
});
	            

Options (Plugin Generated List)

TicketsListContainer

Type:String
Default:null
Sets the Container for Tickets List.
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , TicketsListContainer: "#TicketsList"
	});
	            

Columns

Type:Object
Default:Standard Columns (Flag [Preferred/eTicket], Section, Row, Quantity, Price, Notes, Action)
Defines the Columns to be displayed in Ticket List. Apart from default columns, one can extend the Columns Array to add Custom Columns and handle the Display of Column Content using CellFormatter. If any of the Tickets is Marked as preferred or eticket then Fag Column is Displayed with respective icon. Otherwise, flag Column is Hidden by default.
Column Properties Type
Title String Display Title of the Column
Sortable Boolean Define if the Column is Sortable or Not
SortType String Set Sort type of Column as "numeric" or "string"
Visible Boolean Set Column Display State Visible or Invisible (default: true)
Width Numeric Set Column Width
CSSClass String Set CSS Class for Column. Used in each Table Cell of the List
Align String Set Alignment of the Cell to "left", "center", "right"
Formatter Function Define Custom Formatter form a Cell Value for this Column
Formatter Parameters:
  • RowData(Type: Object)Complete Row Object as Passed in Tickets Property
  • Key(Type: String)Column Key
  • CellValue(Type: Object)Value of the Cell retrieved from RowData
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , TicketsListContainer: "#TicketsList"
	    , Columns: {
			"section": {
	            Title: "Section"
	            , Sortable:true
	            , SortType:"string"
	            , Visible:true
	            , CSSClass:"SectionCssClass"
	        }
			, "row": {
	            Title: "Row"
	            , Sortable:true
	            , SortType:"string"
	            , Visible:true
	        }
			, "quantity": {
	            Title: "Quantity"
	            , Sortable:true
	            , SortType:"numeric"
	            , Visible:true}
			, "price": {
	            Title: "Price"
	            , Sortable:true
	            , SortType:"numeric"
	            , Visible:true
	            , Align:"right"
	        }
			, "notes": {
	            Title: ""
	            , Sortable:false
	            , Visible:true
	            , Width:25
	        }
			, "action": {
	            Title: ""
	            , Sortable:false
	            , Visible:true
	            , Formatter:function(RowData, Key, CellValue){
	                var Link='<a class="BuyLink" href="javascript:void(0);"';
                    Link += ' lang="' + RowData.id+ '">Buy</a>';
					return Link;
				}
	        }
		}
	});
	            

TicketsSort

Type:Object
Default:{ Column: "section", Order: "ASC", SortType: "string" }
Sets the Sort Options for the Tickets List. SortType of Column will override SortType provided in this Option.
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , TicketsSort:{
			Column: "price"
			, Order: "ASC"
			, SortType: "numeric"
		}
	});
	

PreferredFirst

Type:Boolean
Default:false
If true, Preferred Tickets will be displayed first in the List
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , PreferredFirst: true
	});
	            

DisplayListHeader

Type:Boolean
Default:true
Controls Display of List Headers
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , DisplayListHeader: false
	});
	            

PreferredText

Type:String
Default:"Display Preferred Inventory First"
Set Caption of the Control to Show/Hide Preferred Inventory
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , PreferredText: "Show Preferred Results on the Top"
	});
	            

BuyButtonText

Type:String
Default:"Select"
Set Text of Ticket List Buy Button.
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , BuyButtonText: "Buy"
	});
	            

NoResultsFormatter

Type:Function
Default:"No Tickets Found"
Define Custom formatter for the No Results Message
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, NoResultsFormatter:function(){
		return "No Results Found";
	}
});
	            

Options (External Ticket List)

RowSelector

Type:String
Default:null
Sets the Selector to Hide/Show Rows when Interacting with an External Ticket List and TicketsListContainer, Tickets parameters are not set. Use this Option if you do not want Plugin Generated Tickets List and prefer Chart Plugin to interact with your existing Setup. In this Setup, Please do not pass the Tickets array in the Tickets Option and do not set the TicketsListContainer.
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	    , RowSelector: ".TicketRow"
	});
	            

Note:You must call Refresh method with parameter ProcessTickets on the Event of Change in the Ticket List
Code Example:
$("Selector").tuMap("Refresh","ProcessTickets")

SectionSelector

Type:String
Default:null
Sets the Selector to extract the Value of Section Column in a Ticket Row. Plugin will Automatically parse all the Section Values and Activate respective Sections on the Interactive Chart
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
        , RowSelector: ".TicketRow"
	    , SectionSelector: ".Section"
	});
	            

PriceSelector

Type:String
Default:null
Sets the Selector to extract the Value of Price Column in a Ticket Row. Price will be used in Mouseover Tooltip of the Section to indicate Lowest and Highest Ticket Price in that Section
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
        , RowSelector: ".TicketRow"
	    , PriceSelector: ".Price"
	});
	            

QuantitySelector

Type:String
Default:null
Sets the Selector to extract the Value of Quantity Column in a Ticket Row. Quantity will be used in Mouseover Tooltip of the Section to indicate number of Tickets available in that Section
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
        , RowSelector: ".TicketRow"
	    , QuantitySelector: ".Quantity"
	});
	            

eTicketSelector

Type:String
Default:null
Sets the Selector to extract the Value of eTicket Flag in a Ticket Row. If at least Item is returned by the Selector, eTicket is set to True; otherwise false
Code Example:
	$("Selector").tuMap({
	    MapId: "101921b7-d508-4fed-bd90-139015c042b2"
        , RowSelector: ".TicketRow"
	    , eTicketSelector: ".eTicket"
	});
	            

Events

OnInit

Fires when Map Loading is Completed. MapType value specifies which Map is initialized (Interactive or Static). Plugin may load Static Map even if Interactive Map is requested and not available.
Code Example:
$("Selector").tuMap({
	MapId: "101921b7-d508-4fed-bd90-139015c042b2"
	, OnInit:function(e,MapType){
		//Write Code Here
	}
});
	             

OnError

Type:String
Fires when Map Loading fails
Callback Parameter Type
ErrorCode Numeric  0 - Access Denied
 1 - Chart Not Found
 2 - Interactive Chart Not Available
-1 - Unknown Error
Error String Error Message Returned
Code Example:
$("Selector").tuMap({
	OnError:function(e,Error){
		alert(Error.Code + " - " + Error.Message);
	}
});
		

OnMouseover

Fires when User moves Mouse over a Section
Callback Parameter Type
Active Boolean True if Section has Tickets
Selected Boolean True if Section is selected
Key String Unique Identifier of the Section
Name String
Mappings Array Array of Section Names in the Ticket Inventory which are Mapped to this Section.
Alias Array
Group Object Object containing Id, Name, Alias (Array) of the Group
SectionViewAvailable Boolean True if Section View Images are available for the Section.
SectionViewUrl String Url of Large Section View Image
SectionViewThumbnailUrl String Url of Thumbnail Section View Image
Code Example:
$("Selector").tuMap({
	OnMouseover:function(e,Section){
		if(Section.Active) {
			alert("Section " + Section.Name 
                    +" in Group " 
                    + Section.Group.Name);
		}
	}
});

OnMouseout

Fires when User moves Mouse out of a Section
Callback Parameter Type
Active Boolean True if Section has Tickets
Selected Boolean True if Section is selected
Key String Unique Identifier of the Section
Name String
Mappings Array Array of Section Names in the Ticket Inventory which are Mapped to this Section.
Alias Array
Group Object Object containing Id, Name, Alias (Array) of the Group
SectionViewAvailable Boolean True if Section View Images are available for the Section.
SectionViewUrl String Url of Large Section View Image
SectionViewThumbnailUrl String Url of Thumbnail Section View Image
Code Example:
$("Selector").tuMap({
	OnMouseout:function(e,Section){
		if(Section.Active) {
			alert("Section " + Section.Name 
                    +" in Group " 
                    + Section.Group.Name);
		}
	}
});
			

OnClick

Fires when User Selects/Deselects a Section
Callback Parameter Type
Active Boolean True if Section has Tickets
Selected Boolean True if Section is selected
Key String Unique Identifier of the Section
Name String
Mappings Array Array of Section Names in the Ticket Inventory which are Mapped to this Section.
Alias Array
Group Object Object containing Id, Name, Alias (Array) of the Group
SectionViewAvailable Boolean True if Section View Images are available for the Section.
SectionViewUrl String Url of Large Section View Image
SectionViewThumbnailUrl String Url of Thumbnail Section View Image
Code Example:
$("Selector").tuMap({
	OnClick:function(e,Section){
		if(Section.Active && Section.Selected) {
			alert("Selected Section " 
                    + Section.Name 
                    +" in Group " 
                    + Section.Group.Name);
		}
	}
});
	

OnControlClick

Fires when User Selects/Deselects a Button on the Map (Except Reset Button)
Callback Parameter Type
Name Button Text Returns Out of the Map Section Name (Button Text)
Selected Boolean True if Button is selected
Mappings Array Array of Sections Mapped on the Button
Code Example:
$("Selector").tuMap({
	OnControlClick:function(e,Data){
		if(Section.Selected) {
			alert("Selected Button " + Data.Name);
		}
	}
});
	

OnGroupClick

Fires when User Selects/Deselects a Section Group/Legend/Key
Callback Parameter Type
Name String Name of the Section Group
Selected Boolean True if Section Group is selected
Sections Object Array Array of Section Objects having Name and Active Status
Code Example:
$("Selector").tuMap({
	OnGroupClick:function(e,Group){
		if(Group.Selected) {
			alert("Selected Group " + Group.Name);
		}
	}
});
	

OnTicketSelected

Fires when User Clicks Buy Button in Tickets List (Buy Button is Internally Implemented).
Callback Parameter Type
Id String Ticket Id Passed in Tickets List
Quantity Numeric Selected Quantity
Code Example:
							$("Selector").tuMap({
								OnTicketSelected:function(e,Ticket){
									alert("TicketId:" + Ticket.Id +", Quantity:" + Ticket.Quantity);

								}
							});

				

OnReset

Fires when User Clicks Reset Button on the Map.
Code Example:
							$("Selector").tuMap({
								OnReset:function(e){
									//Write Code Here
								}
							});

				

Methods

HighlightSection

Highlights the Section
Signature:
$("Selector").tuMap("HighlightSection",SectionName);

ResetSection

Highlights the Highlighted Section
Signature:
$("Selector").tuMap("ResetSection",SectionName);

ToggleSelection

Select/Deselects the Section
Signature:
$("Selector").tuMap("ToggleSelection",SectionName);

ToggleAll

Select/Deselects all the Sections on the Map
Signature:
$("Selector").tuMap("ToggleAll");

GetSelectedSections

Returns Array of Selected Section Names on the Map. If OnlyUnique is true, it will return only Unique Section Names on the Map. If false, it will return the Section Names as passed to the Plugin.
If OnlyUnique is true and IncludeGroupName is true, it will return combined Group Name and Section Name in the result.

Signature:
var Sections=$("Selector").tuMap("GetSelectedSections",
                        {
                            OnlyUnique:true
                            ,  IncludeGroupName:true
                        });

SetOptions

Select/Deselects the Section
Signature:
$("Selector").tuMap("SetOptions",{
	ZoomLevel:1
	,TicketsFilter: {
		Quantity:3
	}
});
            

Refresh

Refreshes the Map/Tickets List to Reflect the Changed Options by SetOptions call. Parameter is Optional and will be Auto Detected by Plugin, Possible Parameters are Reset, ProcessTickets, SortTickets, ShowTickets

Note: In External Ticket List implementation i.e. RowSelector is Provided. In the Event of Change in Tickets List, You must manually call Refresh with Parameter ProcessTickets in order to Refresh the Section Mappings.
Signature:
$("Selector").tuMap("Refresh"); 
Force Full Reset:
$("Selector").tuMap("Refresh","Reset");

FilterTickets

Filters the Tickets List by the Section Passed as an Argument
Signature:
$("Selector").tuMap("FilterTickets","Parking",true); 

AddMapControl

Add a Custom Button at the Bottom of the Map
Signature:
$("Selector").tuMap("AddMapControl","My Button Name",function(Selected){
    if(Selected)
    {
        alert("Selected");
    }
    else
    {
        alert("Deselected");
    }
}); 

RemoveMapControl

Remove a Button from the Map
Signature:
$("Selector").tuMap("RemoveMapControl","Parking");