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());
61 style : 'margin:auto;',
67 cls : 'col-md-offset-3',
72 fieldLabel : 'Latitude',
75 render : function (_self) {
76 _this.latitude = _self;
90 fieldLabel : 'Longitude',
93 render : function (_self) {
94 _this.longitude = _self;