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:*dev-boun...@geoext.org [mailto:dev-boun...@geoext.org] *On Behalf Of *Matt Priour
*Sent:* Wednesday, December 12, 2012 1:25 PM
*To:* dev@geoext.org
*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:
us...@geoext.org <mailto:us...@geoext.org>

or if it is about extending or improving the GXM or GeoExt libraries, this list (dev@geoext.org <mailto:dev@geoext.org>)

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
Dev@geoext.org  <mailto:Dev@geoext.org>
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

------------------------------------------------------------------------

No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 2013.0.2805 / Virus Database: 2634/5952 - Release Date: 12/11/12


_______________________________________________
Dev mailing list
Dev@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to