From 5265a6391fb7d81f3012418bbed9f74dc3f1736e Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Fri, 4 Feb 2011 13:49:34 -0500 Subject: [PATCH] changed long to lng [#264] --- demos/semantic_video/xml/webMadeMovies.xml | 24 ++++++++++----------- parsers/parserJSON/data/data.json | 2 +- plugins/googlemap/popcorn.googlemap.html | 2 +- plugins/googlemap/popcorn.googlemap.js | 18 ++++++++-------- plugins/googlemap/popcorn.googlemap.unit.js | 4 ++-- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/demos/semantic_video/xml/webMadeMovies.xml b/demos/semantic_video/xml/webMadeMovies.xml index 0616d8d..3757d85 100644 --- a/demos/semantic_video/xml/webMadeMovies.xml +++ b/demos/semantic_video/xml/webMadeMovies.xml @@ -115,24 +115,24 @@ - + Learn more about Grass Roots mapping at www.grassrootsmapping.org - + - + - + @@ -184,15 +184,15 @@ - - - + + + - - - - - + + + + + diff --git a/parsers/parserJSON/data/data.json b/parsers/parserJSON/data/data.json index 5d62ace..6624df2 100644 --- a/parsers/parserJSON/data/data.json +++ b/parsers/parserJSON/data/data.json @@ -25,7 +25,7 @@ "target":"map-container", "type":"ROADMAP", "lat":37.7749295, - "long":-122.4194155, + "lng":-122.4194155, "location":"San Francisco, CA" } }, diff --git a/plugins/googlemap/popcorn.googlemap.html b/plugins/googlemap/popcorn.googlemap.html index 78ceb19..feb92d4 100644 --- a/plugins/googlemap/popcorn.googlemap.html +++ b/plugins/googlemap/popcorn.googlemap.html @@ -16,7 +16,7 @@ type: 'ROADMAP', target: 'map', lat: 43.665429, - long: -79.403323, + lng: -79.403323, zoom: "10" } ) .googlemap({ diff --git a/plugins/googlemap/popcorn.googlemap.js b/plugins/googlemap/popcorn.googlemap.js index 6efc4f6..26ff866 100644 --- a/plugins/googlemap/popcorn.googlemap.js +++ b/plugins/googlemap/popcorn.googlemap.js @@ -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'; } diff --git a/plugins/googlemap/popcorn.googlemap.unit.js b/plugins/googlemap/popcorn.googlemap.unit.js index 4491384..8962284 100644 --- a/plugins/googlemap/popcorn.googlemap.unit.js +++ b/plugins/googlemap/popcorn.googlemap.unit.js @@ -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 ); } -- 2.43.0