From 54eb5672a5f43fb157aa7ecb88b0ba8a06296b86 Mon Sep 17 00:00:00 2001
From: François Frisch
Date: Sun, 18 Mar 2012 22:25:35 -0700
Subject: using channel name rather than url
---
node_modules/components-data/youtube-channel.json | 2 +-
.../montage/examples/youtube-channel-example/index.html | 11 +++--------
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/node_modules/components-data/youtube-channel.json b/node_modules/components-data/youtube-channel.json
index 8affffba..c909fd1b 100644
--- a/node_modules/components-data/youtube-channel.json
+++ b/node_modules/components-data/youtube-channel.json
@@ -7,7 +7,7 @@
"properties": [
{
- "name": "channelUrl",
+ "name": "channel",
"type": "string",
"default": ""
}
diff --git a/node_modules/montage/examples/youtube-channel-example/index.html b/node_modules/montage/examples/youtube-channel-example/index.html
index b313d5d8..f3a0592a 100755
--- a/node_modules/montage/examples/youtube-channel-example/index.html
+++ b/node_modules/montage/examples/youtube-channel-example/index.html
@@ -14,7 +14,8 @@
"player": {
"prototype": "montage/ui/youtube-channel.reel",
"properties": {
- "element": {"#": "player"}
+ "element": {"#": "player"},
+ "channel": "drive"
}
},
@@ -23,12 +24,6 @@
"properties": {
"element": {"#": "url"},
"value": "http://www.youtube.com/TEDEducation"
- },
- "bindings": {
- "value": {
- "boundObject": {"@": "player"},
- "boundObjectPropertyPath": "channelUrl"
- }
}
}
}
@@ -37,7 +32,7 @@
-
- Show:
-
-
-
MAP
-
+
diff --git a/node_modules/montage/ui/map.reel/map.js b/node_modules/montage/ui/map.reel/map.js
index c03d51c5..305ae181 100644
--- a/node_modules/montage/ui/map.reel/map.js
+++ b/node_modules/montage/ui/map.reel/map.js
@@ -42,34 +42,7 @@ var Map = exports.Map = Montage.create(Component, /** @lends module:"montage/ui/
enumerable: false,
value: false
},
- _latitude: {
- enumerable: false,
- value: -34.397
- },
- latitude: {
- enumerable: false,
- set: function(value) {
- this._latitude = value;
- this.needsDraw = true;
- },
- get: function() {
- return this._latitude;
- }
- },
- _longitude: {
- enumerable: false,
- value: -34.397
- },
- longitude: {
- enumerable: false,
- set: function(value) {
- this._longitude = value;
- this.needsDraw = true;
- },
- get: function() {
- return this._longitude;
- }
- },
+
defaultLatLng: {
value: {lat: -34.397, lng: 150.644}
@@ -132,6 +105,7 @@ var Map = exports.Map = Montage.create(Component, /** @lends module:"montage/ui/
return this._category;
},
set: function(value) {
+ console.log('category set: ' + value);
if(value) {
this._category = value;
this._getPlaces(this._category);
@@ -170,6 +144,7 @@ var Map = exports.Map = Montage.create(Component, /** @lends module:"montage/ui/
}
var service = new google.maps.places.PlacesService(this._map);
service.search(request, function(results, status) {
+ console.log('got places for ', self.category, status, results);
if (status == google.maps.places.PlacesServiceStatus.OK) {
self._places = results;
} else {
@@ -192,12 +167,18 @@ var Map = exports.Map = Montage.create(Component, /** @lends module:"montage/ui/
case 'hospital':
icon = '10-medical.png';
break;
- case 'cafe':
- icon = '34-coffee.png';
+ case 'bar':
+ icon = '88-beer-mug.png';
+ break;
+ case 'grocery_or_supermarket':
+ icon = '80-shopping-cart.png';
break;
case 'museum':
icon = '41-picture-frame.png';
break;
+ case 'gas_station':
+ icon = '47-fuel.png';
+ break;
};
if(icon) {
image = new google.maps.MarkerImage('images/' + icon);
--
cgit v1.2.3
From ec58642a7b31165890eb5bef7d95ce59dd0c34a0 Mon Sep 17 00:00:00 2001
From: Kishore Subramanian
Date: Mon, 19 Mar 2012 14:14:29 -0700
Subject: Changes to Map and FeedReader
- Added traffic property to Map
- Support for show/hide traffic in the example
- Changed FeedReader to use only one DIV. No longer uses Repetition
- Support multiple modes in the Feed reader - timed/animated---
.../examples/feed-reader/main.reel/main.html | 32 +++++-
.../ui/feed-reader/feed-entry.reel/feed-entry.js | 10 +-
.../feed-reader/feed-reader.reel/feed-reader.html | 38 +-----
.../ui/feed-reader/feed-reader.reel/feed-reader.js | 127 ++++++++++++---------
node_modules/montage/ui/map.reel/map.js | 29 ++++-
5 files changed, 148 insertions(+), 88 deletions(-)
diff --git a/node_modules/montage/examples/feed-reader/main.reel/main.html b/node_modules/montage/examples/feed-reader/main.reel/main.html
index ef4fc92a..50bac601 100644
--- a/node_modules/montage/examples/feed-reader/main.reel/main.html
+++ b/node_modules/montage/examples/feed-reader/main.reel/main.html
@@ -44,7 +44,9 @@
"module": "montage/ui/feed-reader/feed-reader.reel",
"name": "FeedReader",
"properties": {
- "element": {"#": "feed-reader"}
+ "element": {"#": "feed-reader"},
+ "feedDisplayMode": "timed",
+ "interval": "5"
}
},
@@ -76,7 +78,14 @@
"map": {
"prototype": "montage/ui/map.reel",
"properties": {
- "element": {"#": "map"}
+ "element": {"#": "map"},
+ "traffic": false
+ },
+ "bindings": {
+ "traffic": {
+ "boundObject": {"@": "traffic"},
+ "boundObjectPropertyPath": "checked"
+ }
}
},
@@ -86,6 +95,12 @@
"element": {"#": "types"}
}
},
+ "traffic": {
+ "prototype": "montage/ui/checkbox.reel",
+ "properties": {
+ "element": {"#": "traffic"}
+ }
+ },
"owner": {
"module": "main.reel",
@@ -155,6 +170,18 @@
margin-top: 10px;
}
+ /*
+ .feed-reader .feed-entry {
+ visibility:hidden;
+ opacity:0;
+ transition:visibility 0s linear 0.5s,opacity 0.5s linear;
+ }
+ .feed-reader .feed-entry .active {
+ visibility:visible;
+ opacity:1;
+ transition-delay:0s;
+ }
+ */
@@ -194,6 +221,7 @@
+