File: examples/transitLayer.html

Recommend this page to a friend!
  Classes of Jean-Baptiste DEMONTE   Angular Google Maps Native   examples/transitLayer.html   Download  
File: examples/transitLayer.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/transitLayer.html
Date: 2 years ago
Size: 766 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="showTransitLayer=true"> <div class="panel"> <div class="item"> <label> <input type="checkbox" ng-model="showTransitLayer"> Show the TransitLayer </label> </div> </div> <gm-map options="{center: [51.501904,-0.115871], zoom: 13}"> <gm-transitLayer ng-show="showTransitLayer"></gm-transitLayer> </gm-map> </body> </html>