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,
42 render : function (_self) {
45 positionchanged : function (_self, location) {
47 _this.latitude.setValue(location.lat());
51 _this.longitude.setValue(location.lng());
62 style : 'margin:auto;',
68 cls : 'col-md-offset-3',
73 fieldLabel : 'Latitude',
76 render : function (_self) {
77 _this.latitude = _self;
91 fieldLabel : 'Longitude',
94 render : function (_self) {
95 _this.longitude = _self;