-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinit.html
38 lines (32 loc) · 1.12 KB
/
init.html
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
34
35
36
37
38
<!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 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 Address</h1>
<places-map address="initAddress"></places-map>
<script>
angular.module('sample', ['ngPlacesMap'])
.controller('MainCtrl', function ( $scope ) {
$scope.initAddress = {
place_id : "ChIJ31GTk67GhkcRPw6Nl8LeRdQ",
geometry : {
location : {
A : 45.464679,
F : 9.190770100000009
}
},
zoom: 20
};
});
</script>
</body>
</html>