File: examples/streetviewpanorama.html

Recommend this page to a friend!
  Classes of Jean-Baptiste DEMONTE   Angular Google Maps Native   examples/streetviewpanorama.html   Download  
File: examples/streetviewpanorama.html
Role: Example script
Content type: text/plain
Description: Documentation
Class: Angular Google Maps Native
Add AngularJS directives to render GoogleMaps
Author: By
Last change: Update of examples/streetviewpanorama.html
Date: 2 years ago
Size: 979 bytes
 

Contents

Class file image Download
<!DOCTYPE html> <html ng-app="MyApp"> <head lang="en"> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="assets/style.css"> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> <script src="../dist/angular-google-maps-native.min.js"></script> <script> angular.module('MyApp', ['GoogleMapsNative']); </script> </head> <body ng-init="data = {}"> <div class="panel"> <div class="item"> <label> <input type="checkbox" ng-model="showStreetViewPanorama"> Show the streetViewPanorama </label> </div> </div> <gm-map options="{center: [42.345573,-71.098326], zoom: 4, mapTypeId: google.maps.MapTypeId.ROADMAP}" gm-then="data.map = map"></gm-map> <br /> <gm-streetviewpanorama ng-show="showStreetViewPanorama" position="data.map.getCenter()" options="{pov: {heading: 34, pitch: 10, zoom: 1}}" gm-then="data.map.setStreetView(streetViewPanorama)"></gm-streetviewpanorama> </body> </html>