3 Roo.example = Roo.example || {};
5 Roo.example.locationpicker = new Roo.XComponent({
6 part : ["layout","viewpanel"],
7 order : '001-viewpanel',
10 name : "unnamed module",
17 el : new Roo.bootstrap.Body()
19 this.parent.el.layout = false;
20 this.parent.el.render(document.body);
35 xtype : 'LocationPicker',
37 style : 'width:500px; height: 400px; border: 1px solid #000;margin:50px auto;',
38 latitude : 46.15242437752303,
39 longitude : 2.7470703125,
41 render : function (_self) {
44 positionchanged : function (_self, location) {
46 _this.latitude.setValue(location.lat());
50 _this.longitude.setValue(location.lng());
60 style : 'margin:auto;',
70 fieldLabel : 'Latitude',
73 render : function (_self) {
74 _this.latitude = _self;
88 fieldLabel : 'Longitude',
91 render : function (_self) {
92 _this.longitude = _self;