Skip to content

Commit 383e671

Browse files
committed
fixing examples and website
1 parent 834d3a2 commit 383e671

File tree

10 files changed

+56
-38
lines changed

10 files changed

+56
-38
lines changed

Gruntfile.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ module.exports = (grunt) ->
8282
'prod_build'
8383
]
8484

85-
grunt.registerTask 's', ['server']
85+
grunt.registerTask 's', ['open', 'connect:dist:keepalive']#just server prod release
8686

8787
return

app/changelog.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

app/views/examples/base/base.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<meta charset="utf-8" />
66
<title>AngularJS Plunker</title>
77
<script src="../../../vendor/scripts/angular.js" ></script>
8-
<script src="../../../vendor/scripts/lodash.compat.js"></script>
8+
<script src="../../../vendor/scripts/lodash.js"></script>
9+
<script src="../../../vendor/scripts/angular-simple-logger.js"></script>
910
<script src="../../../vendor/scripts/angular-google-maps.js"></script>
1011
<script src="example.js"></script>
1112
<style type="text/css">

app/views/examples/layer/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="map_canvas" ng-controller="mainCtrl">
22
<ui-gmap-google-map center="map.center" zoom="map.zoom" draggable="true" options="options">
3-
<ui-gmap-layer namespace="weather" type="WeatherLayer" show="showWeather"></ui-gmap-layer>
3+
<ui-gmap-layer type="TransitLayer" show="show"></ui-gmap-layer>
44
</ui-gmap-google-map>
55
</div>

app/views/examples/layer/script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
'use strict';
12
angular.module('appMaps', ['uiGmapgoogle-maps'])
23
.controller('mainCtrl', function($scope) {
3-
$scope.map = {center: {latitude: 51.219053, longitude: 4.404418 }, zoom: 4 };
4-
$scope.options = {scrollwheel: false};
5-
$scope.showWeather = true;
6-
});
4+
$scope.map = {center: {latitude: 38.90, longitude: -77.016 }, zoom: 12 };
5+
$scope.show = true;
6+
});

app/views/examples/polyline/script.js

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
angular.module('appMaps', ['uiGmapgoogle-maps'])
2-
.controller('mainCtrl', function($scope) {
2+
.config(function(uiGmapGoogleMapApiProvider) {
3+
uiGmapGoogleMapApiProvider.configure({
4+
libraries: 'geometry,visualization'
5+
});
6+
})
7+
.controller('mainCtrl', function($scope, uiGmapGoogleMapApi) {
38
$scope.map = {center: {latitude: 40.1451, longitude: -99.6680 }, zoom: 4, bounds: {}};
4-
$scope.polylines = [
9+
$scope.polylines = [];
10+
uiGmapGoogleMapApi.then(function(){
11+
$scope.polylines = [
512
{
613
id: 1,
714
path: [
@@ -73,25 +80,7 @@ angular.module('appMaps', ['uiGmapgoogle-maps'])
7380
offset: '25px',
7481
repeat: '50px'
7582
}]
76-
},
77-
{
78-
id: 3,
79-
path: google.maps.geometry.encoding.decodePath("uowfHnzb}Uyll@i|i@syAcx}Cpj[_wXpd}AhhCxu[ria@_{AznyCnt^|re@nt~B?m|Awn`G?vk`RzyD}nr@uhjHuqGrf^ren@"),
80-
stroke: {
81-
color: '#4EAE47',
82-
weight: 3
83-
},
84-
editable: false,
85-
draggable: false,
86-
geodesic: false,
87-
visible: true,
88-
icons: [{
89-
icon: {
90-
path: google.maps.SymbolPath.BACKWARD_OPEN_ARROW
91-
},
92-
offset: '25px',
93-
repeat: '50px'
94-
}]
9583
}
9684
];
97-
});
85+
});
86+
});

app/views/use.html

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,34 @@ <h1 class="page-header">Quickstart</h1>
1212
<p>
1313
Download <a href="https://raw.github.com/angular-ui/angular-google-maps/master/dist/angular-google-maps.js">angular-google-maps.js</a>
1414
(<a href="https://raw.github.com/angular-ui/angular-google-maps/master/dist/angular-google-maps.min.js">minified version</a>) and put it with your other scripts.
15-
Alternatively, you can use Bower to install it automatically:
15+
Alternatively, you can use Bower, NPM, and Meteor to install it automatically:
1616
</p>
17-
<div hljs language="bash">bower install angular-google-maps</div>
18-
<p>If not using Bower, you'll also need to fetch:
17+
<ul>
18+
<li>
19+
<div>
20+
Bower:
21+
<div hljs language="bash">bower install angular-google-maps</div>
22+
<p>
23+
it is recommended to use <a href="https://github.com/ck86/main-bower-files">main-bower-files</a> with gulp, or grunt. As this will zip up all your dependencies in one nice vendor.js file.
24+
</p>
25+
</div>
26+
</li>
27+
<li>
28+
<div>
29+
NPM:
30+
<div hljs language="bash">npm install angular-google-maps</div>
31+
<p>
32+
it is recommended to use <a href="http://browserify.org/">browserify</a> or <a href="http://webpack.github.io/docs/">webpack</a> to bootstrap CommonJS dependencies.
33+
</p>
34+
</div>
35+
</li>
36+
<li>
37+
Meteor: see <a href="https://atmospherejs.com/angularui/angular-google-maps">here</a>
38+
</li>
39+
</ul>
40+
41+
42+
<p title="your living in the stone age">If not using Bower, NPM, or Meteor, or zero package managers you'll also need to fetch:
1943
<ul>
2044
<li>
2145
<a href="http://lodash.com/" rel="external">lodash.js</a>
@@ -24,7 +48,7 @@ <h1 class="page-header">Quickstart</h1>
2448
<a href="http://angularjs.org/" rel="external">angular.js</a>
2549
</li>
2650
<li>
27-
<a href="http://github.com/nmccready/angular-simple-logger/blob/master/dist/index.js" rel="external">angular-simple-logger/dist/index.js</a>
51+
<a href="http://github.com/nmccready/angular-simple-logger/blob/master/dist/angular-simple-logger.js" rel="external">angular-simple-logger/dist/angular-simple-logger.js</a>
2852
</li>
2953
</ul>
3054

@@ -35,7 +59,8 @@ <h1 class="page-header">Quickstart</h1>
3559
</li>
3660
<li>
3761
<p>Load lodash.js and angular-google.maps.js into your HTML page:</p>
38-
<div hljs language="html" source="'<script src=\'/path/to/lodash[.min].js\'></script>\n<script src=\'/path/to/angular[.min].js\'></script>\n<script src=\'/path/to/angular-simple-logger/index[.min].js\'></script>\n<script src=\'/path/to/angular-google-maps[.min].js\'></script>'">
62+
<div hljs language="html"
63+
source="'<script src=\'/path/to/lodash[.min].js\'></script>\n<script src=\'/path/to/angular[.min].js\'></script>\n<script src=\'/path/to/angular-simple-logger/angular-simple-logger[.min].js\'></script>\n<script src=\'/path/to/angular-google-maps[.min].js\'></script>'">
3964
</div>
4065
</li>
4166
<li>

bower.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
"share-button": "~0.0.3",
1818
"bootstrap": "~3.2.0",
1919
"lodash": ">=2.4.1",
20-
"highlightjs": "~8.7.0"
20+
"highlightjs": "~8.7.0",
21+
"angular-simple-logger": "~0.1.4"
2122
},
2223
"devDependencies": {
2324
"angular-mocks": "1.4.5",
2425
"angular-scenario": "1.4.5"
2526
},
2627
"resolutions": {
27-
"angular": "1.4.5"
28+
"angular": "1.4.5",
29+
"angular-simple-logger": "~0.1.4"
2830
}
2931
}

grunt/concat.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ vendor_js =
66
'<%= yeoman.dist %>/vendor/scripts/lodash*'
77
'<%= yeoman.dist %>/vendor/scripts/highlight*'
88
'<%= yeoman.dist %>/vendor/scripts/angular.js'
9+
'<%= yeoman.dist %>/vendor/scripts/angular-simple-logger.js'
910
'<%= yeoman.dist %>/vendor/scripts/*.js'
1011
]
1112
dest:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"grunt-contrib-htmlmin": "~0.3.0",
2323
"grunt-contrib-imagemin": "~0.8.1",
2424
"grunt-contrib-jshint": "~0.10.0",
25-
"grunt-contrib-uglify": "~0.6.0",
25+
"grunt-contrib-uglify": "~0.9.2",
2626
"grunt-contrib-watch": "~0.6.1",
2727
"grunt-gh-pages": "^0.9.1",
2828
"grunt-git-log-json": "nlaplante/grunt-git-log-json#develop",

0 commit comments

Comments
 (0)