-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Features loading from Protocol to FeatureStore failed. #173
Comments
Hey @NeilujD, I have observed sth. similar, and think your first findings are correct. I'll try to have a deeper look in the next days. Thanks for your report! |
Hi all, I am having trouble with this as well. Loading a geojson displays fine but the attributes are not listed in a "Ext.grid.GriPanel" . Instead I see entries in the first column like "OpenLayers_Feature_Vector_XX" where XX is a number. Similar code for geoext1.1 works fine for both. The attributes I am looking for are stored in layer.features[x].data. Not sure whether this is the right channel to post these points. Sorry if not. Thanks in advance Stefan |
I haven't found time to dig deeper here, sorry. I still think that the suggested change doesn't look to bad. I won't have time the next days, but I'll try not to forget about this one. Thanks for bumping this issue. |
I also won't be able to look at this before the end of the week. But I am sure we'll get this handled soon. Thanks for keeping this up! |
I am having the same problem as Stefan, there is no way of displaying features in a gridpanel |
Hi all, One problem is the thing with the nested feature attributes described by @NeilujD. Can you offer some code or ensure the problem still exists? When I take a look at the file GeoExt2/src/GeoExt/data/proxy/Protocol.js there is no line The other thing is the problem with the attributes in the GridPanel, desrcibed by @sluedtke and @fobetor. When I look at our online example (http://geoext.github.io/geoext2/examples/grid/feature-grid.html) displaying the attributes in the GridPanel should be working. Can you get your things running with some code similar to the code in the example? If not can you provide some code excerpts? Cheers, |
Hi chris
The features are drawn correctly on openlayers, and I can see the features in DOM in console, but the grid is not filled with the store data. The features appears in console as Stefan describes: Feature_vector_XX. |
Hi @fobetor , |
Hi Chris |
Okay I found the point. The main difference between your code and the online example here is that you are using a Here is a code snippet which works:
BTW if the URL specified in the protocol is a local one or a remote one doesn't matter. Hope this helps, maybe another online example showing how to use the GeoExt.data.proxy.Protocol to load features would helpful. Cheers, |
I just added a PR (#318) with a new example showing the before mentioned. |
Thanks Chris "NetworkError: 404 Not Found - http://172.26.0.100/web/New/proxy/%5Bobject%20Object%5D.js" |
You are pointing to "http://172.26.0.100/web/New/proxy/[object Object].js" Maybe your your JS setting the URL is wrong? From a GeoExt point-of-view all should be fine now. |
Hi Cris |
Escuses, it was my fault, I missed a "comma" in line |
I would like to say something but I am not able to test anything due to A soon as I am fit again I will go and test it .. think next week. Cheers On 11/26/2014 08:48 PM, Marc Jansen wrote:
PGP Public Key: http://bit.ly/13d9Sca |
Hi all, so I eventually found time to try the "reader" option and it partly solved my problem. The following part is working now: However, using that store with "Ext.create('Ext.grid.GridPanel'," does: and (ii) the content displayed in the grid is, as far as I can see, the content of store.data.items[XX].data. and not correct. I still see an "OpenLayers_Feature_Vector_XXXX". I am not sure whether this information is of importance within this context, but I do have 2 map-panels next to each other in my application. That is basically the only special point about it. Thanks for your efforts! |
When using the protocol config to load features in a FeatureStore and then load the features form the FeatureStore to a Vector Layer, the features are not added.
Example :
In other words the "features" parameter of the layer contains another "features" attributes, which is wrong IMHO.
In think this is a bug because the features are not displayed at all on the layer.
I found a way to resolve it :
In the file : GeoExt2/src/GeoExt/data/proxy/Protocol.js
I changed the line 108 :
As a result of this patch, the features are displayed correctly.
Thank you in advance,
Julien Collard
The text was updated successfully, but these errors were encountered: