<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>You can also check out some of the GXP code for inspiration:</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/boundlessgeo/gxp/blob/master/src/script/widgets/form/GoogleGeocoderComboBox.js">https://github.com/boundlessgeo/gxp/blob/master/src/script/widgets/form/GoogleGeocoderComboBox.js</a></p>
<p>Best regards,</p>
<p>Bart<br>
</p>
<br>
<div class="moz-cite-prefix">On 02-03-17 15:30, Christian Mayer |
meggsimum wrote:<br>
</div>
<blockquote
cite="mid:f3b8b737-a489-a544-759d-47a4dc0be816@meggsimum.de"
type="cite">
<pre wrap="">Oh, I did not expect that you're still on GeoExt 1.x. Then forget the
Ext.require and Ext.create stuff I wrote in my previous mail.
I fear that there is no GeocoderComboBox in GeoExt 1. So I think you
have to implement it on your own. For example by extending a "normal"
ExtJS ComboBox [1] like it is done in the newer GeoExt versions. I guess
you can get the general idea how to do this from the GeoExt2
GeocoderComboBox code [2].
Cheers
Chris
[1] <a class="moz-txt-link-freetext" href="http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.form.ComboBox">http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.form.ComboBox</a>
[2]
<a class="moz-txt-link-freetext" href="https://geoext.github.io/geoext2/docs/source/GeocoderComboBox.html#GeoExt-form-field-GeocoderComboBox">https://geoext.github.io/geoext2/docs/source/GeocoderComboBox.html#GeoExt-form-field-GeocoderComboBox</a>
On 02.03.2017 15:15, John, Steffen wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I just found in the following Post, that
Ext.rahttps://www.sencha.com/forum/showthread.php?132077-Ext-require-is-not-a-functionequire
was introduced with Ext4.0, but in the Geonode context Ext 3.4 is used.
<a class="moz-txt-link-freetext" href="https://www.sencha.com/forum/showthread.php?132077-Ext-require-is-not-a-function">https://www.sencha.com/forum/showthread.php?132077-Ext-require-is-not-a-function</a>
Is there an alternative way of using the GeocoderComboBox?
Steffen
Am Donnerstag, den 02.03.2017, 12:18 +0100 schrieb Christian Mayer |
meggsimum:
</pre>
<blockquote type="cite">
<pre wrap="">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 class="moz-txt-link-freetext" 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:
</pre>
<blockquote type="cite">
<pre wrap="">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 class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:Users@geoext.org"><mailto:Users@geoext.org></a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:Users@geoext.org"><mailto:Users@geoext.org></a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</blockquote>
<pre wrap="">
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Bart van den Eijnden<br>
JavaScript developer | Boundless<br>
<a class="moz-txt-link-abbreviated" href="mailto:bartvde@boundlessgeo.com">bartvde@boundlessgeo.com</a><br>
<img src="cid:part1.0243BAE8.8175FF76@boundlessgeo.com">
</div>
</body>
</html>