master
1class Stronglifters.GoogleMap
2 constructor: (div) ->
3 @div = document.getElementById(div)
4
5 present: (options) ->
6 coordinates = new google.maps.LatLng(options.latitude, options.longitude)
7 map = new google.maps.Map(@div, {
8 center: coordinates,
9 zoom: 15,
10 scrollwheel: false,
11 mapTypeId: google.maps.MapTypeId.TERRAIN,
12 })
13 marker = new google.maps.Marker({
14 map: map,
15 position: coordinates,
16 title: options.name
17 })