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: Update of examples/trafficlayer.html
Date: 1 month ago
Size: 785 bytes


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=""></script>
  <script src="../dist/angular-google-maps-native.min.js"></script>
    angular.module('MyApp', ['GoogleMapsNative']);
<body ng-init="showTrafficLayer=true">
  <div class="panel">
    <div class="item">
        <input type="checkbox" ng-model="showTrafficLayer"> Show the TrafficLayer

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