API Docs for: 0.6.0
Show:

sgvizler.visualization.Map Class

Available since 0.3.0

Extends google.visualization.Map in markers dataMode. Draws textboxes with heading, paragraph, link and image.

Data Format 2--6 columns:

  1. lat
  2. long
  3. name (optional)
  4. text (optional)
  5. link (optional)
  6. image (optional)
  • If < 4 columns, then behaves just as gMap
  • Only 6 columns will be read, columns > 6 are ignored.

Constructor

sgvizler.visualization.Map

(
  • container
)

Defined in src/visualization/Map.js:3

Available since 0.3.0

Parameters:

  • container Object

    The container element where the chart will be drawn.

Item Index

Methods

addListener

(
  • name
  • func
)
public

Inherited from sgvizler.charts.Chart: src/charts.js:80

Available since 0.6.0

Add a function which is to be fired when the listener named name is fired.

See fireListener

Parameters:

  • name String

    The name of the listener.

  • func Function

    The function to fire.

Example:

addListener("ready", function () { console.log("Ready!") });

draw

(
  • data
  • [chartOptions]
)
public

Defined in src/visualization/Map.js:27

Available since 0.3.0

Same options available as for google.visualization.Map.

Parameters:

  • data google.visualization.DataTable
  • [chartOptions] Object optional

fireListener

(
  • name
)
public

Inherited from sgvizler.charts.Chart: src/charts.js:103

Available since 0.6.0

Fires (runs, executes) all functions registered on the listener name.

See addListener.

Parameters:

  • name String

    The name of the listener.