<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Hi Christian,</div>
<div><br>
</div>
<div>Thanks for your hint. I tried adding Ext.require and the error message said: </div>
<div><br>
</div>
<div>Ext.require is not a function</div>
<div><br>
</div>
<div>I'm actually trying to extend GeoNode (which uses GeoExplorer, which uses GeoExt) by adding a PlugIn to the paneltbar.</div>
<div><br>
</div>
<div>Do you have an Idea, why I can't use Ext.requiere? Probably, the reference is missing. This is by the way also the reason I use "new" to construct" the object, since Ext.create also doesn't work.</div>
<div><br>
</div>
<div>Greetings,</div>
<div>Steffen</div>
<div class="-x-evo-paragraph -x-evo-top-signature-spacer"><br>
</div>
<div>Am Donnerstag, den 02.03.2017, 12:18 +0100 schrieb Christian Mayer | meggsimum:</div>
<blockquote type="cite">
<pre>Hi Steffen,
you have to require the GeoExt.form.field.GeocoderComboBox class in your
code. Something like
Ext.require([
'GeoExt.panel.Map',
'GeoExt.form.field.GeocoderComboBox'
]);
should do the trick for you.
Also try to use Ext.create to instantiate your Ext-objects instead of using 'new' (as you did to create your TabPanel).
Take also a look at the official GeoExt GeoCoder example: <a href="https://geoext.github.io/geoext2/examples/geocoder/geocoder.html">https://geoext.github.io/geoext2/examples/geocoder/geocoder.html</a>
Cheers
Chris
On 01.03.2017 16:38, John, Steffen wrote:
<blockquote type="cite">
Hi All!
I want to use the GeocoderComboBox from GeoExt and facing someproblems.
I want to integrate it in a Ext.TabPanel and all I get is following
error:
"TypeError: b[(intermediate value)] is not a constructor"
Here ist the code-snippet
panel = new Ext.TabPanel({
renderTo: Ext.getBody(),
activeTab: 0,
defaults: {
plain: true,
frame : true
},
items: [{
xtype: 'panel',
title: this.addresssearchText,
height : 302,
items:[{
layout:'form',
items:[{
xtype: 'gx_geocodercombo',
layer: locationLayer,
map: map,
width: 200
}]
}]
},{
// xtype for all Component
configurations in a Container
title: this.coordsearchText,
html: 'The second tab'
}]
});
Do I need to import or reference the sourceCode of this ComboBox or
should it be accessible, when also other GeoExt functions are used in
the project?
I'm about to extend Geoexplorer and add the functionality of geocoding.
Any Ideas?
Thanks a lot!
Steffen
_______________________________________________
Users mailing list
<a href="mailto:Users@geoext.org">Users@geoext.org</a>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</blockquote>
_______________________________________________
Users mailing list
<a href="mailto:Users@geoext.org">Users@geoext.org</a>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>