-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfallback.html
More file actions
33 lines (27 loc) · 1.03 KB
/
fallback.html
File metadata and controls
33 lines (27 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html ng-app="sample">
<head lang="it">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Init with fallback address</title>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&libraries=places"></script>
<script src="../bower_components/angular/angular.js"></script>
<script src="../dist/js/ngplacesmap.min.js"></script>
<link href="../dist/css/ngplacesmap.min.css" media="all" rel="stylesheet" />
</head>
<body ng-controller="MainCtrl">
<h1>Init with fallback address</h1>
<places-map fallback="fallbackAddress"></places-map>
<script>
angular.module('sample', ['ngPlacesMap'])
.controller('MainCtrl', function ( $scope ) {
$scope.fallbackAddress = {
lat: 46.1355055,
lng: 9.566074500000013,
zoom: 10 // optional, default value: 5
}
});
</script>
</body>
</html>