Skip to content

Commit feedbfc

Browse files
author
Paul Bulai
committed
added street-view-panorama example
1 parent d3e115d commit feedbfc

File tree

5 files changed

+58
-1
lines changed

5 files changed

+58
-1
lines changed

app/views/examples/base/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
<div style="width:100%; height: 350px; padding:4px;">
1414
<iframe style="width: 100%; height: 100%"></iframe>
1515
</div>
16-
</div>
16+
</div>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div ng-controller="ctrl">
2+
<ui-gmap-google-map id="map"
3+
center="map.center"
4+
pan="map.pan"
5+
zoom="map.zoom"
6+
refresh="map.refresh"
7+
options="map.options"
8+
events="map.events"
9+
bounds="map.bounds">
10+
11+
<ui-gmap-marker idKey='map.id' coords="map.marker" >
12+
<ui-gmap-window templateUrl="'street-view-window.html'" templateParameter="map.marker">
13+
</ui-gmap-window>
14+
</ui-gmap-marker>
15+
16+
</ui-gmap-google-map>
17+
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "street-view-panorama",
3+
"files": ["index.html", "street-view-window.html", "script.js", "../base/plnkr.html"]
4+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
angular.module('appMaps', ['uiGmapgoogle-maps'])
2+
.controller('ctrl', ['$scope', "uiGmapLogger", "uiGmapGoogleMapApi", "$http",
3+
function ($scope, $log, uiGmapGoogleMapApi, $http) {
4+
$scope.map = {
5+
id: 1,
6+
center: {
7+
latitude: 38.889484,
8+
longitude: -77.035279
9+
},
10+
zoom: 16,
11+
refresh: false,
12+
events: {},
13+
bounds: {},
14+
draw: undefined
15+
};
16+
$scope.map.marker = _.extend({}, $scope.map.center);
17+
}])
18+
.controller('PanCtrl',function(){
19+
20+
})
21+
.controller('WinController', function ($scope, $log) {
22+
23+
$scope.getParam = function(){
24+
return $scope.parameter;
25+
};
26+
27+
$scope.streetViewEvents = {
28+
image_status_changed:function(gObject,eventName,model,status){
29+
$log.info("status street: " + status);
30+
}
31+
};
32+
});;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div ng-controller="WinController">
2+
<ui-gmap-street-view-panorama focalCoord="parameter" radius="50" events="streetViewEvents">
3+
</ui-gmap-street-view-panorama>
4+
</div>

0 commit comments

Comments
 (0)