Created
October 16, 2015 08:56
-
-
Save erkie/f50c03460da541662be8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
inputObj: Ember.computed(function() { | |
var self = this; | |
return { | |
latitude : '12.976299881670053', | |
longitude : '80.13112306594849', | |
zoom : 7, | |
click : function(){ | |
self.set('mapMessage','map_click'); | |
}, | |
dblclick : function(){ | |
self.set('mapMessage','map_double_click'); | |
}, | |
drag : function(){ | |
self.set('mapMessage','map_drag'); | |
}, | |
dragend : function(){ | |
self.set('mapMessage','map_dragend'); | |
}, | |
dragstart : function(){ | |
self.set('mapMessage','map_dragstart'); | |
}, | |
mousemove : function(){ | |
self.set('mapMessage','map_mousemove'); | |
}, | |
mouseout : function(){ | |
self.set('mapMessage','map_mouseout'); | |
}, | |
mouseover : function(){ | |
self.set('mapMessage','map_mouseover'); | |
}, | |
rightclick : function(){ | |
self.set('mapMessage','map_rightclick'); | |
}, | |
infowindow : { | |
content : '<div>Info window</div>', | |
latitude : '11.976299881670053', | |
longitude : '80.13112306594849', | |
maxWidth : 500, | |
}, | |
markers :[ | |
{ | |
latitude : '12.976299881670053', | |
longitude : '80.13112306594849', | |
title : 'first marker', | |
click : function(rec_event){ | |
self.set('mapMessage','Marker_1_click' + rec_event); | |
}, | |
animation : 'DROP', | |
timeout : 2000, | |
draggable : true, | |
infowindow : { | |
content : '<div>Marker 1</div>', | |
} | |
}, | |
{ | |
latitude : '13.976299881670053', | |
longitude : '80.13112306594849', | |
title : 'first marker', | |
click : function(rec_event){ | |
self.set('mapMessage','Marker_2_Click' + rec_event); | |
}, | |
animation : 'BOUNCE', | |
timeout : 4000, | |
draggable : false | |
} | |
] | |
} | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment