Icontem

File: examples/trafficlayer.html

Recommend this page to a friend!
  Classes of Jean-Baptiste DEMONTE  >  Angular Google Maps Native  >  examples/trafficlayer.html  >  Download  
File: examples/trafficlayer.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:
Date: 4 years ago
Size: 785 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="showTrafficLayer=true">
  <div class="panel">
    <div class="item">
      <label>
        <input type="checkbox" ng-model="showTrafficLayer"> Show the TrafficLayer
      </label>
    </div>
  </div>

  <gm-map options="{center: [34.04924594193164, -118.24104309082031], zoom: 13}">
    <gm-trafficLayer ng-show="showTrafficLayer"></gm-trafficLayer>
  </gm-map>

</body>
</html>