Matt,
For a quick explanation, I tried to create the GeoExt2 tree example in the ExtJS 4 MVC style. In the example, all the items were instantiated in the application launch method. This seems to be similar to the way earlier versions of ExtJS worked. I never used ExtJS before version 4. I was trying to use the Sencha ExtJS version 4 MVC directory structure, etc. and the tree store will not work because the plugins need the mapPanel which is an instantiated object in the example and not a string. I'll set up an example so you can see what I mean. Worth _____ From: Matt Priour [mailto:[email protected]] Sent: Wednesday, December 12, 2012 2:46 PM To: Worth Lutz Cc: [email protected] Subject: Re: [Dev] Introduction If you set up the controllers correctly, you should have access to the map from any other component that you want. If you can show a minimal example or post a Gist of your code, we may be able to help. Matt Priour On 12/12/2012 12:55 PM, Worth Lutz wrote: Matt, I realize that GeoExt2 is not compatible with Sencha Touch 2. I do have a Touch application but that is another story. And thanks for that information on GeoExt Mobile. I did not know about that. I am using ExtJS4 with Sencha Architect to create a ExtJS application. It is here where I have had some problems with incorporating GeoExt. It is the manner in which GeoExt interfaces with OpenLayers which is causing the problem. Some components do not have access to the OpenLayers map or the GeoExt.panel.Map when they get instantiated. There in lies the problem. This is caused by Sencha's loader. The problem is the same one that caused Sencha to strings in their "config" objects instead of the actual instantiated class. I have attempted to mimic this method when incorporating OpenLayers into my xxx.view.OpenLayersMap class as well as the other classes. I am able to define my map in a store and have the view show the map. I am working on getting the controls mapped to buttons at the moment. My buttons are not in the map container therefore need to connect to the map separate from the map container In any case, what I was asking was would this be of any interest to the developers of ExtJS? In sharing my code, I would hope to get constructive criticism which would improve my knowledge and thus my products. Thanks, Worth Lutz _____ From: [email protected] [mailto:[email protected]] On Behalf Of Matt Priour Sent: Wednesday, December 12, 2012 1:25 PM To: [email protected] Subject: Re: [Dev] Introduction Worth Lutz, GeoExt2 is not directly compatible with Sencha Touch 2. It is compatible with ExtJS4. You're correct, there are differences between the 2 MVC models and class definition syntax used in those 2 libraries from Sencha. GXM (GeoExt Mobile) is compatible with Sencha Touch 2. Therefore, if you are trying to do Sencha Touch based applications, you would be best served by looking at the GXM library and using it instead. GXM on GitHub : https://github.com/geoext/GXM Please feel free to post further problems to the GeoExt users list: [email protected] or if it is about extending or improving the GXM or GeoExt libraries, this list ([email protected]) Matt Priour Kestrel Computer Consulting On 12/12/2012 9:55 AM, Worth Lutz wrote: Greetings, I'd like to introduce myself to this list. My name is Worth Lutz and I am working with Sencha extjs and touch. I have tried to use GeoExt2 as most of my work involves mapping. Most of my mapping is done with MapServer serving up single maps directly to my custom client application. I am using Sencha Architect to develop the application. I have tried to integrate GeoExt2 into a new application I am developing. Due to the asynchronous nature of the Sencha MVC model the current GeoExt2 classes do not integrate well. As such I have used your work as an example to developing some new classes. I currently have a Maps store, and an OpenLayersMap container. The The reason "OpenLayers" is in the name is that I have a "MapServer" map class as well which handles single image maps. As I am not completely familiar with OpenLayers, I am having a slow start at getting this working. Currently I have a map loading into the store and then into the container in my application. The map is described in a JSON file loaded by the store. What I am wondering is if maybe I could submit my work here and help provide some more classes for GeoExt. Also maybe I'd then get some feedback where I might be straying off in the wrong direction. If this sounds like a good idea, please let me know how to proceed. Thanks, Worth Lutz _______________________________________________ Dev mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/dev _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2805 / Virus Database: 2634/5952 - Release Date: 12/11/12 _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2805 / Virus Database: 2634/5952 - Release Date: 12/11/12
_______________________________________________ Dev mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/dev
