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);
36 xtype : 'LocationPicker',
38 style : 'width:500px; height: 400px; border: 1px solid #000;margin:50px auto;',
39 latitude : 46.15242437752303,
40 longitude : 2.7470703125,
43 render : function (_self) {
46 positionchanged : function (_self, location) {
50 _this.latitude.setValue(0);
54 _this.longitude.setValue(0);
65 style : 'margin:auto;',
71 cls : 'col-md-offset-3',
76 fieldLabel : 'Latitude',
79 render : function (_self) {
80 _this.latitude = _self;
94 fieldLabel : 'Longitude',
97 render : function (_self) {
98 _this.longitude = _self;