lib/assets/javascripts/socmap_adf/modules/map/views/main.js.coffee in socmap_adf-0.0.10 vs lib/assets/javascripts/socmap_adf/modules/map/views/main.js.coffee in socmap_adf-0.0.11
- old
+ new
@@ -76,7 +76,11 @@
bounds.extend(new google.maps.LatLng(marker.lat, marker.lng))
@model.fitBounds(bounds)
@model.getGMap().setZoom(@model.getGMap().getZoom() - 1)
@setCenterWithOffset(@model.getGMap().getCenter(), 0, -300) if centerWithOffset
+ addContextMenu: () ->
+ @contextMenu = new ADF.GMap.Views.ContextMenu({gElement : @getGMap(), mapModel: @model})
+ @contextMenu.render()
+
# Callback methods
onRenderCompleted: () ->
\ No newline at end of file