Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Add map example to old docs page to aid development.
- Loading branch information
Showing
4 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<h1>Map</h1> | ||
|
||
<div google-chart chart="myMapChart" style="height:130px; width:100%;"></div> | ||
|
||
<iframe src="partials/map.js" style="width:90%; height: 350px; margin: 1%; border: 1px solid black;" frameborder="0"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(function(){ | ||
angular.module('google-chart-sample') | ||
.controller("MapChartCtrl", MapChartCtrl); | ||
|
||
MapChartCtrl.$inject = ["$scope"]; | ||
function MapChartCtrl($scope){ | ||
$scope.myMapChart = { | ||
type: "Map", | ||
data: [ | ||
["Lat", "Long", "Name"], | ||
[37.4232, -122.0853, 'Work'], | ||
[37.4289, -122.1697, 'University'], | ||
[37.6153, -122.3900, 'Airport'], | ||
[37.4422, -122.1731, 'Shopping'] | ||
], | ||
options: { | ||
showTooltop: true, | ||
showInfoWindow: true | ||
} | ||
} | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters