UNPKG

ovalcountiesangularmap

Version:

A map of the uk, with hover on counties, selectable and incorporated with angular

33 lines (30 loc) 1.55 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>BBC News jQuery Map</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="map.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular.js"></script> <style type="text/css"> .credits{font-size: 1.6em; line-height: 2em; margin: 0 0 0 10px;} </style> </head> <body ng-app="TestApp"> <div ng-controller="TestController"> <oval-map added-regions="addedRegions"></oval-map> </div> <script type="text/javascript" src="js/app.js"></script> <script type="text/javascript" src="js/counties-list.js"></script> <script type="text/javascript" src="js/counties-directive.js"></script> <script> var App = angular.module( 'TestApp', [ 'ovalCountiesMap' ] ); </script> <script> App.controller( 'TestController', ['$scope', function( $scope ){ $scope.addedRegions = ["Essex"]; }]); </script> </body> </html>