Skip to content

Commit

Permalink
Removed UpdateLocation Function
Browse files Browse the repository at this point in the history
This function was really just a wrapper for addMarker and
updateViewport. However, the viewport updating is a special type of
viewport updating, and it's not going to be always that these are linked
together. There is no need for this function.
  • Loading branch information
Kelderic committed Jun 8, 2016
1 parent 3c3c34f commit 206450f
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions mapstractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,35 +603,6 @@

},

updateLocation: function(params) {

// STORE this AS self, SO THAT IT IS ACCESSIBLE IN SUB-FUNCTIONS AND TIMEOUTS.

var self = this;

// SETUP VARIABLES FROM USER-DEFINED PARAMETERS

/* Variable: place */
/* Type: Custom Google Maps Place Object */
/* Default: '' */
/* Purpose: This is a Google Maps place object */
/* that the map will focused on. */
var place = 'place' in params ? params.place : '';

// ADD NEW MARKER

self.addMarker({
place: place
});

// MOVE THE VIEWPORT OF THE MAP TO THE NEW MARKER

self.updateViewport({
place: place
});

},

updateViewport: function(params) {

// STORE this AS self, SO THAT IT IS ACCESSIBLE IN SUB-FUNCTIONS AND TIMEOUTS.
Expand Down

0 comments on commit 206450f

Please sign in to comment.