aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage-google
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage-google')
-rw-r--r--node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html2
-rw-r--r--node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html1
-rw-r--r--node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js3
-rw-r--r--node_modules/montage-google/map.reel/icons/airplane.pngbin0 -> 3004 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/cafe.pngbin0 -> 2958 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/coffee.pngbin0 -> 3052 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/food.pngbin0 -> 3038 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/fork-and-knife.pngbin0 -> 2882 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/map-marker.pngbin0 -> 3131 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/medical.pngbin0 -> 2915 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/picture-frame.pngbin0 -> 2928 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/shopping.pngbin0 -> 2970 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/widescreen.pngbin0 -> 2986 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/wine-bottle.pngbin0 -> 187 bytes
-rw-r--r--node_modules/montage-google/map.reel/icons/wine-glass.pngbin0 -> 2983 bytes
-rw-r--r--node_modules/montage-google/map.reel/map.js27
-rwxr-xr-xnode_modules/montage-google/picasa-carousel.reel/picasa-carousel.html1
-rw-r--r--node_modules/montage-google/youtube-channel.reel/youtube-channel.html1
-rw-r--r--node_modules/montage-google/youtube-channel.reel/youtube-channel.js10
19 files changed, 24 insertions, 21 deletions
diff --git a/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html b/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html
index 332b2932..66471eab 100644
--- a/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html
+++ b/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html
@@ -45,7 +45,6 @@
45 } 45 }
46 }, 46 },
47 "owner": { 47 "owner": {
48 "prototype": "feed-reader/feed-entry.reel",
49 "properties": { 48 "properties": {
50 "element": {"#": "feed-entry"} 49 "element": {"#": "feed-entry"}
51 } 50 }
@@ -76,6 +75,7 @@
76</head> 75</head>
77<body> 76<body>
78 <div class="feed-entry" data-montage-id="feed-entry"> 77 <div class="feed-entry" data-montage-id="feed-entry">
78
79 <a target="_blank" data-montage-id="entry-url" class="entry-url"><h2 data-montage-id="entry-title" class="entry-title"></h2></a> 79 <a target="_blank" data-montage-id="entry-url" class="entry-url"><h2 data-montage-id="entry-title" class="entry-title"></h2></a>
80 <p data-montage-id="entry-description" class="entry-description"></p> 80 <p data-montage-id="entry-description" class="entry-description"></p>
81 </div> 81 </div>
diff --git a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html
index 4d6792a1..a5c1346f 100644
--- a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html
+++ b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html
@@ -38,7 +38,6 @@
38 }, 38 },
39 39
40 "owner": { 40 "owner": {
41 "prototype": "feed-reader/feed-reader.reel",
42 "properties": { 41 "properties": {
43 "element": {"#": "feed-reader"} 42 "element": {"#": "feed-reader"}
44 } 43 }
diff --git a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js
index 34533d6d..3c139c60 100644
--- a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js
+++ b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js
@@ -16,11 +16,8 @@ exports.FeedReader = Montage.create(Component, {
16 value: function() { 16 value: function() {
17 var self = this; 17 var self = this;
18 var apiInit = function() { 18 var apiInit = function() {
19 console.log('google api initialized');
20
21 google.load("feeds", "1", { 19 google.load("feeds", "1", {
22 callback: function() { 20 callback: function() {
23 console.log('google feeds api loaded');
24 self._apiLoaded = true; 21 self._apiLoaded = true;
25 self.feedURL = self._feedURL; 22 self.feedURL = self._feedURL;
26 self.needsDraw = true; 23 self.needsDraw = true;
diff --git a/node_modules/montage-google/map.reel/icons/airplane.png b/node_modules/montage-google/map.reel/icons/airplane.png
new file mode 100644
index 00000000..dfcbbc78
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/airplane.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/cafe.png b/node_modules/montage-google/map.reel/icons/cafe.png
new file mode 100644
index 00000000..4e9c517a
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/cafe.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/coffee.png b/node_modules/montage-google/map.reel/icons/coffee.png
new file mode 100644
index 00000000..4c4bedad
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/coffee.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/food.png b/node_modules/montage-google/map.reel/icons/food.png
new file mode 100644
index 00000000..81afd74a
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/food.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/fork-and-knife.png b/node_modules/montage-google/map.reel/icons/fork-and-knife.png
new file mode 100644
index 00000000..06d91088
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/fork-and-knife.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/map-marker.png b/node_modules/montage-google/map.reel/icons/map-marker.png
new file mode 100644
index 00000000..a5d99d69
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/map-marker.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/medical.png b/node_modules/montage-google/map.reel/icons/medical.png
new file mode 100644
index 00000000..ab78c783
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/medical.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/picture-frame.png b/node_modules/montage-google/map.reel/icons/picture-frame.png
new file mode 100644
index 00000000..6deee997
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/picture-frame.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/shopping.png b/node_modules/montage-google/map.reel/icons/shopping.png
new file mode 100644
index 00000000..03689f99
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/shopping.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/widescreen.png b/node_modules/montage-google/map.reel/icons/widescreen.png
new file mode 100644
index 00000000..2e5f1ba7
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/widescreen.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/wine-bottle.png b/node_modules/montage-google/map.reel/icons/wine-bottle.png
new file mode 100644
index 00000000..a7df9e97
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/wine-bottle.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/icons/wine-glass.png b/node_modules/montage-google/map.reel/icons/wine-glass.png
new file mode 100644
index 00000000..b4d34474
--- /dev/null
+++ b/node_modules/montage-google/map.reel/icons/wine-glass.png
Binary files differ
diff --git a/node_modules/montage-google/map.reel/map.js b/node_modules/montage-google/map.reel/map.js
index 4e3a6d70..1aeb97df 100644
--- a/node_modules/montage-google/map.reel/map.js
+++ b/node_modules/montage-google/map.reel/map.js
@@ -117,9 +117,12 @@ var Map = exports.Map = Montage.create(Component, /** @lends module:"montage/ui/
117 this._category = value; 117 this._category = value;
118 if (this._map && this.latLng) { 118 if (this._map && this.latLng) {
119 this._getPlaces(this._category); 119 this._getPlaces(this._category);
120 this.needsDraw = true;
121 } 120 }
121 } else {
122 this._places = [];
122 } 123 }
124
125 this.needsDraw = true;
123 } 126 }
124 }, 127 },
125 128
@@ -186,26 +189,30 @@ var Map = exports.Map = Montage.create(Component, /** @lends module:"montage/ui/
186 var icon, image; 189 var icon, image;
187 switch(this.category) { 190 switch(this.category) {
188 case 'restaurant': 191 case 'restaurant':
189 icon = '48-fork-and-knife.png'; 192 icon = 'fork-and-knife.png';
190 break; 193 break;
191 case 'hospital': 194 case 'hospital':
192 icon = '10-medical.png'; 195 icon = 'medical.png';
193 break; 196 break;
194 case 'bar': 197 case 'bar':
195 icon = '88-beer-mug.png'; 198 icon = 'beer-mug.png';
196 break; 199 break;
197 case 'grocery_or_supermarket': 200 case 'grocery_or_supermarket':
198 icon = '80-shopping-cart.png'; 201 icon = 'shopping.png';
199 break; 202 break;
200 case 'museum': 203 case 'museum':
201 icon = '41-picture-frame.png'; 204 icon = 'picture-frame.png';
202 break; 205 break;
203 case 'gas_station': 206 case 'gas_station':
204 icon = '47-fuel.png'; 207 icon = 'fuel.png';
205 break; 208 break;
206 }; 209 case 'cafe':
210 icon = 'cafe.png';
211 break;
212 }
213
207 if(icon) { 214 if(icon) {
208 image = new google.maps.MarkerImage('images/' + icon); 215 image = new google.maps.MarkerImage(this._montage_metadata.require.modules['map.reel/map'].directory + 'icons/' + icon);
209 } 216 }
210 var options = { 217 var options = {
211 map: map, 218 map: map,
@@ -289,6 +296,8 @@ var Map = exports.Map = Montage.create(Component, /** @lends module:"montage/ui/
289 for (var i = 0; i < places.length; i++) { 296 for (var i = 0; i < places.length; i++) {
290 this._createMarker(places[i]); 297 this._createMarker(places[i]);
291 } 298 }
299 } else {
300 this._removeAllMarkers();
292 } 301 }
293 302
294 if(this.traffic === true) { 303 if(this.traffic === true) {
diff --git a/node_modules/montage-google/picasa-carousel.reel/picasa-carousel.html b/node_modules/montage-google/picasa-carousel.reel/picasa-carousel.html
index 8712c228..b5949299 100755
--- a/node_modules/montage-google/picasa-carousel.reel/picasa-carousel.html
+++ b/node_modules/montage-google/picasa-carousel.reel/picasa-carousel.html
@@ -12,7 +12,6 @@
12 <script type="text/montage-serialization"> 12 <script type="text/montage-serialization">
13 { 13 {
14 "owner": { 14 "owner": {
15 "prototype": "picasa-carousel.reel",
16 "properties": { 15 "properties": {
17 "element": {"#": "montage-google-picasa-carousel"}, 16 "element": {"#": "montage-google-picasa-carousel"},
18 "flow": {"@": "flow"} 17 "flow": {"@": "flow"}
diff --git a/node_modules/montage-google/youtube-channel.reel/youtube-channel.html b/node_modules/montage-google/youtube-channel.reel/youtube-channel.html
index 112fda72..01cc42f3 100644
--- a/node_modules/montage-google/youtube-channel.reel/youtube-channel.html
+++ b/node_modules/montage-google/youtube-channel.reel/youtube-channel.html
@@ -41,7 +41,6 @@
41 }, 41 },
42 42
43 "owner": { 43 "owner": {
44 "module": "youtube-channel.reel",
45 "name": "YoutubeChannel", 44 "name": "YoutubeChannel",
46 "properties": { 45 "properties": {
47 "element": {"#": "container"}, 46 "element": {"#": "container"},
diff --git a/node_modules/montage-google/youtube-channel.reel/youtube-channel.js b/node_modules/montage-google/youtube-channel.reel/youtube-channel.js
index ca08564b..95cd336a 100644
--- a/node_modules/montage-google/youtube-channel.reel/youtube-channel.js
+++ b/node_modules/montage-google/youtube-channel.reel/youtube-channel.js
@@ -124,6 +124,8 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
124 124
125 draw: { 125 draw: {
126 value: function() {