]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
changed long to lng [#264]
authorAnna Sobiepanek <annaopensource@gmail.com>
Fri, 4 Feb 2011 18:49:34 +0000 (13:49 -0500)
committerAnna Sobiepanek <annaopensource@gmail.com>
Fri, 4 Feb 2011 18:49:34 +0000 (13:49 -0500)
demos/semantic_video/xml/webMadeMovies.xml
parsers/parserJSON/data/data.json
plugins/googlemap/popcorn.googlemap.html
plugins/googlemap/popcorn.googlemap.js
plugins/googlemap/popcorn.googlemap.unit.js

index 0616d8d321d9ce0348b656e5a527e78fd6e1fdc2..3757d85e58ea262f802e174821d2c69c35086695 100644 (file)
       <flickr in="00:00:41:00" out="00:01:07:09" target="personalflickr" userid="35034346917@N01" numberofimages="8" padding="4px"/>
       <twitter in="00:00:41:00" out="00:01:07:09" title="Oil Spill" src="#oilspill" target="twitter" width="238" height="120"/>
       <googlenews in="00:00:41:00" out="00:01:07:09" target="googlenewsdiv" topic="Oil Spill"/>
-      <googlemap resourceid="grandislewiki" in="00:00:41:00" out="00:01:07:09" lat="29.2720" long="-90.0233 " target="container2" zoom="8"/>
+      <googlemap resourceid="grandislewiki" in="00:00:41:00" out="00:01:07:09" lat="29.2720" lng="-90.0233 " target="container2" zoom="8"/>
       <wikipedia in="00:00:41:00" out="00:01:07:09" resourceid="oilspill" numberofwords="200" target="wikidiv"/>
       <footnote in="00:00:41:00" out="00:01:07:09" target="footnotediv">Learn more about Grass Roots mapping at www.grassrootsmapping.org</footnote>
       <twitter in="00:01:07:10" out="00:01:25:07" title="Steve Song" src="@stevesong" target="personaltwitter" width="238" height="120"/>
       <flickr in="00:01:07:10" out="00:01:25:07" target="personalflickr" userid="78868639@N00" numberofimages="8" padding="4px"/>
-      <googlemap id="CapeTown" resourceid="capetownwiki" in="00:01:07:10" out="00:01:32:07" lat="-33.9238" long="18.4233" target="container2" zoom="8"/>
+      <googlemap id="CapeTown" resourceid="capetownwiki" in="00:01:07:10" out="00:01:32:07" lat="-33.9238" lng="18.4233" target="container2" zoom="8"/>
       <wikipedia in="00:01:07:10" out="00:01:32:07" resourceid="villagetelco" numberofwords="200" target="wikidiv"/>
       <tagthisperson target="inthisvideo" in="00:01:25:08" out="00:01:32:07" person="Michael Adeyeye" />
 
       <tagthisperson target="inthisvideo" in="00:01:32:08" out="00:01:38:02" person="Charlie Schmidt" />
       <twitter in="00:01:32:08" out="00:01:57:11" title="Charlie Schmidt" src="@chuckieart" target="personaltwitter" width="238" height="120"/>
-      <googlemap id="MITMediaLab" resourceid="mitmedialabhome" in="00:01:32:08" out="00:01:57:11" lat="42.3613" long="-71.0863" target="container2" zoom="12"/>
+      <googlemap id="MITMediaLab" resourceid="mitmedialabhome" in="00:01:32:08" out="00:01:57:11" lat="42.3613" lng="-71.0863" target="container2" zoom="12"/>
       <tagthisperson target="inthisvideo" in="00:01:38:02" out="00:01:41:10" person="Keyboard Cat" />
       <tagthisperson target="inthisvideo" in="00:01:41:11" out="00:01:57:11" person="Charlie Schmidt" />
 
       <tagthisperson target="inthisvideo" in="00:02:09:00" out="00:03:07:05" person="Jonathan Zittrain" />
       <twitter in="00:02:09:00" out="00:03:07:05" title="Jonathan Zittrain" source="@zittrain" target="personaltwitter" width="238" height="120"/>
-      <googlemap resourceid="harvardlawhome" in="00:02:09:00" out="00:03:07:05" lat="42.4222" long="-88.6137" target="container2" zoom="12"/>
+      <googlemap resourceid="harvardlawhome" in="00:02:09:00" out="00:03:07:05" lat="42.4222" lng="-88.6137" target="container2" zoom="12"/>
       <wikipedia in="00:02:09:00" out="00:02:20:00" resourceid="zittrain" numberofwords="200" target="wikidiv"/>
       <wikipedia in="00:02:20:01" out="00:02:23:00" resourceid="compuserve" numberofwords="200" target="wikidiv"/>
       <wikipedia in="00:02:23:01" out="00:02:26:00" resourceid="aol" numberofwords="200" target="wikidiv"/>
     </resources>
 
     <map>
-      <googlemap resourceid="capetownwiki" in="00:00:03:00" out="00:00:11:07" lat="-33.9238" long="18.4233" target="container2" zoom="8"/>
-      <googlemap resourceid="grandislewiki" in="00:00:11:07" out="00:00:19:07" lat="29.2720" long="-90.0233" target="container2" zoom="8"/>
-      <googlemap resourceid="mitmedialabhome" in="00:00:19:08" out="00:00:27:00" lat="42.3613" long="-71.0863" target="container2" zoom="12"/>
+      <googlemap resourceid="capetownwiki" in="00:00:03:00" out="00:00:11:07" lat="-33.9238" lng="18.4233" target="container2" zoom="8"/>
+      <googlemap resourceid="grandislewiki" in="00:00:11:07" out="00:00:19:07" lat="29.2720" lng="-90.0233" target="container2" zoom="8"/>
+      <googlemap resourceid="mitmedialabhome" in="00:00:19:08" out="00:00:27:00" lat="42.3613" lng="-71.0863" target="container2" zoom="12"/>
 
-      <googlemap resourceid="austinwiki" in="00:03:59:00" out="00:04:03:05" lat="45.5089" long="-73.5542" target="container2" zoom="8"/>
-      <googlemap resourceid="newyorkwiki" in="00:04:03:06" out="00:04:07:01" lat="40.7143" long="-74.0060" target="container2" zoom="8"/>
-      <googlemap resourceid="saopaulowiki" in="00:04:07:02" out="00:04:13:01" lat="-23.5489" long="-46.6388 " target="container2" zoom="8"/>
-      <googlemap resourceid="seoulwiki" in="00:04:13:02" out="00:04:19:05" lat="37.5665" long="126.9780" target="container2" zoom="8"/>
-      <googlemap resourceid="montrealwiki" in="00:04:19:06" out="00:04:24:01" lat="45.5089" long="-73.5542 " target="container2" zoom="8"/>
+      <googlemap resourceid="austinwiki" in="00:03:59:00" out="00:04:03:05" lat="45.5089" lng="-73.5542" target="container2" zoom="8"/>
+      <googlemap resourceid="newyorkwiki" in="00:04:03:06" out="00:04:07:01" lat="40.7143" lng="-74.0060" target="container2" zoom="8"/>
+      <googlemap resourceid="saopaulowiki" in="00:04:07:02" out="00:04:13:01" lat="-23.5489" lng="-46.6388 " target="container2" zoom="8"/>
+      <googlemap resourceid="seoulwiki" in="00:04:13:02" out="00:04:19:05" lat="37.5665" lng="126.9780" target="container2" zoom="8"/>
+      <googlemap resourceid="montrealwiki" in="00:04:19:06" out="00:04:24:01" lat="45.5089" lng="-73.5542 " target="container2" zoom="8"/>
     </map>
 
     <subtitles languagesrc="language" accessibilitysrc="accessibility">
index 5d62acec960d4a7574987bbaf137a9a2917fd1cc..6624df200e2b0755db64dbb9e6a9b72b836197c3 100644 (file)
@@ -25,7 +25,7 @@
         "target":"map-container",
         "type":"ROADMAP",
         "lat":37.7749295,
-        "long":-122.4194155,
+        "lng":-122.4194155,
         "location":"San Francisco, CA"
       }
     },
index 78ceb190269e1b1944724abf45983ce4a633e1d6..feb92d4167b1655bf8ed17e9d576bb5761ccf03f 100644 (file)
@@ -16,7 +16,7 @@
         type: 'ROADMAP',
         target: 'map',
         lat: 43.665429,
-        long: -79.403323,
+        lng: -79.403323,
         zoom: "10"
       } )
       .googlemap({
index 6efc4f62cf66a5593d188aa7f354d4b90e574f79..26ff8664a34e3a8392d75519009638b4a6a9e31b 100644 (file)
@@ -5,15 +5,15 @@ var googleCallback;
   /**
    * googlemap popcorn plug-in 
    * Adds a map to the target div centered on the location specified by the user
-   * Options parameter will need a start, end, target, type, zoom, lat and long, and location
+   * Options parameter will need a start, end, target, type, zoom, lat and lng, and location
    * -Start is the time that you want this plug-in to execute
    * -End is the time that you want this plug-in to stop executing 
    * -Target is the id of the DOM element that you want the map to appear in. This element must be in the DOM
    * -Type [optional] either: HYBRID (default), ROADMAP, SATELLITE, TERRAIN 
    * -Zoom [optional] defaults to 0
-   * -Lat and Long: the coordinates of the map must be present if location is not specified.
+   * -Lat and Lng: the coordinates of the map must be present if location is not specified.
    * -Location: the adress you want the map to display, bust be present if lat and log are not specified.
-   *  Note: using location requires extra loading time, also not specifying both lat/long and location will
+   *  Note: using location requires extra loading time, also not specifying both lat/lng and location will
    * cause and error. 
    * @param {Object} options
    * 
@@ -25,7 +25,7 @@ var googleCallback;
           type: 'ROADMAP',
           target: 'map',
           lat: 43.665429,
-          long: -79.403323
+          lng: -79.403323
         } )
    *
    */
@@ -48,7 +48,7 @@ var googleCallback;
           type     : {elem:'select', options:['ROADMAP','SATELLITE', 'HYBRID', 'TERRAIN'], label:'Type'},
           zoom     : {elem:'input', type:'text', label:'Zoom'},
           lat      : {elem:'input', type:'text', label:'Lat'},
-          long     : {elem:'input', type:'text', label:'Long'},
+          lng     : {elem:'input', type:'text', label:'Lng'},
           location : {elem:'input', type:'text', label:'Location'}
         }
       },
@@ -79,7 +79,7 @@ var googleCallback;
         googleCallback = function() {
           _mapLoaded    = true;
         };
-        // If there is no lat/long, and there is location, geocode the location
+        // If there is no lat/lng, and there is location, geocode the location
         // you can only do this once google.maps exists
         var isGeoReady = function() {
           if ( !_mapLoaded ) {
@@ -93,14 +93,14 @@ var googleCallback;
               geocoder.geocode({ 'address': options.location}, function(results, status) {
                 if (status === google.maps.GeocoderStatus.OK) {
                   options.lat  = results[0].geometry.location.lat();
-                  options.long = results[0].geometry.location.lng(); 
-                  options._location = new google.maps.LatLng(options.lat, options.long);
+                  options.lng = results[0].geometry.location.lng(); 
+                  options._location = new google.maps.LatLng(options.lat, options.lng);
                   options._map = new google.maps.Map(options._newdiv, {mapTypeId: google.maps.MapTypeId[options.type] || google.maps.MapTypeId.HYBRID }); 
                   options._map.getDiv().style.display = 'none';
                 } 
               });
             } else {
-              options._location = new google.maps.LatLng(options.lat, options.long);
+              options._location = new google.maps.LatLng(options.lat, options.lng);
               options._map = new google.maps.Map(options._newdiv, {mapTypeId: google.maps.MapTypeId[options.type] || google.maps.MapTypeId.HYBRID });  
               options._map.getDiv().style.display = 'none';
             }
index 4491384f1949a103a6d0c8b8e7645fcc069d601e..8962284442510bb2ecc1773c903f169752bdeba2 100644 (file)
@@ -33,7 +33,7 @@ test("Popcorn Google Map Plugin", function () {
         type: 'ROADMAP',
         target: 'map',
         lat: 43.665429,
-        long: -79.403323,
+        lng: -79.403323,
         zoom: 10
       } )
       .googlemap({
@@ -73,7 +73,7 @@ test("Popcorn Google Map Plugin", function () {
   mapInterval3 = setInterval( function() {
     if( popped.currentTime() > 5  ) {
       ok (document.getElementById('actualmap2').style.display === "none" && 
-          document.getElementById('actualmap1').style.display === "none", "Both maps are no longer visible" );
+          document.getElementById('actualmap1').style.display === "none", "Both maps are no lnger visible" );
       plus();
       clearInterval( mapInterval3 );
     }