Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- updateSaveWidget: function (place) {
- var saveWidgetOptions = {
- place: {
- placeId: place.get('place_id'),
- location: {lat: place.get('lat'), lng: place.get('lng')}
- },
- attribution: {
- source: 'The New York Times',
- webUrl: 'http://paidpost.nytimes.com'
- }
- };
- // lazy init the save Widget
- if (! this.saveWidget) {
- this.saveWidget = new google.maps.SaveWidget(document.getElementById('place-save-widget'), saveWidgetOptions);
- } else {
- // update an existing save widget
- this.saveWidget.setOptions(saveWidgetOptions);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement