<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Helvetica, Arial, sans-serif">Hi,</font></p>
<p><font face="Helvetica, Arial, sans-serif">your map detection
seems OK, this looks more like a proble</font>m with ExtJS
itself. Try</p>
<p>me.store = treeStrore; instead of <span class="pl-smi">me</span>.<span
class="pl-en">setStore</span>(treeStore);</p>
<p>since you call the parent constructor afterwards.</p>
<p>Cheers<br>
Chris<br>
</p>
<div class="moz-cite-prefix">On 19.06.2018 13:00, Jakob Miksch
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:09ec5891-3375-19d8-dfa4-58826411c317@sbg.ac.at">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Thanks for the hints.<br>
<br>
It would be nice to combine the examples (<a
class="moz-txt-link-freetext"
href="https://geoext.github.io/geoext3/" moz-do-not-send="true">https://geoext.github.io/geoext3/</a>)
into a "HelloGeoExt" application. ThisĀ would make it much easier
to learn GeoExt. I would be happy if my app could be the basis for
it.<br>
<br>
I already can access the map from my OverviewMap. See this file: <a
class="moz-txt-link-freetext"
href="https://github.com/JakobMiksch/HelloGeoExt/blob/master/app/view/main/OverviewMap.js"
moz-do-not-send="true">https://github.com/JakobMiksch/HelloGeoExt/blob/master/app/view/main/OverviewMap.js</a><br>
<br>
If I try something similar with the LayerTree I receive errors
like "TypeError: viewConfig is undefined". Here is the code:<br>
<a class="moz-txt-link-freetext"
href="https://gist.github.com/JakobMiksch/b68276dd52bee8330ff5ab71fa238475"
moz-do-not-send="true">https://gist.github.com/JakobMiksch/b68276dd52bee8330ff5ab71fa238475</a><br>
<br>
Could you tell why this approach works for the OverviewMap but not
for the LayerTree ?<br>
<br>
Thanks and best regards,<br>
Jakob<br>
<br>
<div class="moz-cite-prefix">Am 18.06.2018 um 16:19 schrieb
Christian Mayer:<br>
</div>
<blockquote type="cite"
cite="mid:999b8292-c830-85e6-b5cb-28fa22f8cabb@meggsimum.de">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<p><br>
</p>
<div class="moz-cite-prefix">On 15.06.2018 15:06, Jakob Miksch
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:be2f85d8-76c0-63c0-c17b-7cc584a677dc@sbg.ac.at">
Thanks for the link. I am actually getting started with Ext JS
and GeoExt at the same time. (maybe this is a bad idea ... ).
Understanding the BasiGX components is still a bit unclear to
me. And the web apps I mentioned earlier are very complex and
hence also hard to understand. <br>
<br>
The examples on <a class="moz-txt-link-freetext"
href="http://geoext.org/" moz-do-not-send="true">http://geoext.org/</a>
are nice and easy to understand, but I find it challenging to
convert the single file into the proper folder structure of
Ext. <br>
</blockquote>
<p><font face="Helvetica, Arial, sans-serif">you are right, that
there are not so many example apps available, which use the
</font>MVC / MVVM pattern. Most of the examples are simple
single-file demo-apps (like on the GeoExt website). Maybe a
simple MVC / MVVM app would be cool and we had that for
previous GeoExt versions:</p>
<p><a class="moz-txt-link-freetext"
href="https://github.com/geoext/geoext2/tree/master/examples/app/simple"
moz-do-not-send="true">https://github.com/geoext/geoext2/tree/master/examples/app/simple</a></p>
<p><a class="moz-txt-link-freetext"
href="https://github.com/geoext/geoext2/tree/master/examples/app-mvvm"
moz-do-not-send="true">https://github.com/geoext/geoext2/tree/master/examples/app-mvvm</a></p>
<br>
<blockquote type="cite"
cite="mid:be2f85d8-76c0-63c0-c17b-7cc584a677dc@sbg.ac.at"> <br>
At the moment I am trying to build a pretty standard web
mapping application with a main map, an overview map and a
layer switcher. The overview map works, but I struggle to
build the layer switcher, because I do not figure out how to
access the layers from map. This is what I did so far: <a
class="moz-txt-link-freetext"
href="https://github.com/JakobMiksch/HelloGeoExt"
moz-do-not-send="true">https://github.com/JakobMiksch/HelloGeoExt</a><br>
</blockquote>
<br>
Maybe we can use your "HelloWorld" app as example reference for
MVC / MVVM app setup.<br>
<br>
<blockquote type="cite"
cite="mid:be2f85d8-76c0-63c0-c17b-7cc584a677dc@sbg.ac.at"> <br>
Not sure if this is a general Ext question:<br>
But what is the "best practice" way to exchange the map and
its layers between the different components?<br>
</blockquote>
<br>
<br>
You can pass in the map or better a MapComponent, like <a
class="moz-txt-link-freetext"
href="https://github.com/JakobMiksch/HelloGeoExt/blob/master/app/view/main/Map.js"
moz-do-not-send="true">https://github.com/JakobMiksch/HelloGeoExt/blob/master/app/view/main/Map.js</a>,
as config property of your own component. ExtJS will handle it
like a member variable in your instance.<br>
If that is not possible for your whatever reason you can query
arbitrary component instances with Ext.ComponentQuery.query (<a
class="moz-txt-link-freetext"
href="https://geoext.github.io/geoext3/master/docs-w-ext/#%21/api/Ext.ComponentQuery"
moz-do-not-send="true">https://geoext.github.io/geoext3/master/docs-w-ext/#!/api/Ext.ComponentQuery</a>).
So a <br>
<br>
Ext.ComponentQuery.query('mappanel') <br>
<br>
might be a helpful command. Even I like it more to pass over
dependencies as config.<br>
<br>
Cheers<br>
Chris<br>
<br>
<blockquote type="cite"
cite="mid:be2f85d8-76c0-63c0-c17b-7cc584a677dc@sbg.ac.at"> <br>
Is there any rather simple GeoExt based app that I could use a
template?<br>
<br>
Cheers and have a nice weekend,<br>
Jakob<br>
<br>
<div class="moz-cite-prefix">Am 13.06.2018 um 10:30 schrieb
Seth G:<br>
</div>
<blockquote type="cite"
cite="mid:1528878607.2795906.1406373720.084CE3EA@webmail.messagingengine.com">
<pre wrap="">Hi Jakob,
<a class="moz-txt-link-freetext" href="https://github.com/terrestris/BasiGX" moz-do-not-send="true">https://github.com/terrestris/BasiGX</a> has a good collcetion of tools and utilities.
Seth
--
web:<a class="moz-txt-link-freetext" href="http://geographika.co.uk" moz-do-not-send="true">http://geographika.co.uk</a>
twitter: @geographika
On Wed, Jun 13, 2018, at 9:39 AM, Jakob Miksch wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear list,
I am getting into Ext and GeoExt and I am looking for examples where I
could learn from. I already found these:
<a class="moz-txt-link-freetext" href="https://github.com/terrestris/shogun2-client" moz-do-not-send="true">https://github.com/terrestris/shogun2-client</a>
<a class="moz-txt-link-freetext" href="https://github.com/OpenBfS/gis-client" moz-do-not-send="true">https://github.com/OpenBfS/gis-client</a>
and of course the tutorials:
<a class="moz-txt-link-freetext" href="https://github.com/geoext/geoext3-ws" moz-do-not-send="true">https://github.com/geoext/geoext3-ws</a>
<a class="moz-txt-link-freetext" href="https://github.com/geoext/geoext3/blob/master/universal-app.md" moz-do-not-send="true">https://github.com/geoext/geoext3/blob/master/universal-app.md</a>
Could you point me to any other existing projects with GeoExt?
kind regards,
Jakob
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org" moz-do-not-send="true">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">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" moz-do-not-send="true">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<div class="moz-signature"><font
font-family="Verdana,sans-serif" color="gray" size="1"><br>
</font> </div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org" moz-do-not-send="true">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org" moz-do-not-send="true">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font font-family="Verdana,sans-serif" color="gray" size="1"> <b><font
color="#365F91">Jakob Miksch</font></b> | <b><font
color="#8DB3E2">Researcher</font></b><br>
University of Salzburg | Department of Geoinformatics - Z_GIS<br>
Schillerstrasse 30 | 5020 Salzburg, Austria<br>
Phone: +43 (0)662 8044 7529<br>
E-mail: <a href="mailto:jakob.miksch@sbg.ac.at"
moz-do-not-send="true">jakob.miksch@sbg.ac.at</a> | <a
href="http://www.zgis.at" moz-do-not-send="true">http://www.zgis.at</a><br>
</font> </div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
</body>
</html>