Skip to content
Browse files

remove dispose function. change goog map element id target

  • Loading branch information...
1 parent 33e4fd2 commit 0f24bf8b1c9a6e6b47575c18efb38654a3055961 @zmcartor committed
Showing with 2 additions and 8 deletions.
  1. +2 −8 app/javascript/maps.coffee
View
10 app/javascript/maps.coffee
@@ -17,20 +17,14 @@ window.Map = class Map extends Backbone.View
geo_error: (error) ->
alert error
- #every class will have a 'dispose' function which will clean up screen and
- #unbind handlers
- dispose: ->
- #unbind things if need be..
- @$el.hide()
- console.log 'cleaned up maps, goodbye!'
-
+
render: ->
@$el.show()
myOptions =
zoom: 10,
center: @location,
mapTypeId: google.maps.MapTypeId.ROADMAP
- @map = new google.maps.Map(document.getElementById('map_area') , myOptions);
+ @map = new google.maps.Map(document.getElementById('goog_map') , myOptions);
#use this stuff later to geocode and center on an address. Pretty cool! :)
find_location: (eve) ->

0 comments on commit 0f24bf8

Please sign in to comment.
Something went wrong with that request. Please try again.