Skip to content
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

Add gmf.EditFeature service with example #1459

Merged
merged 2 commits into from
Jun 30, 2016

Conversation

adube
Copy link
Contributor

@adube adube commented Jun 23, 2016

This PR introduces the gmf.EditFeature service along with a simple example that demonstrates what you can do with it. The example should be replaced in the incoming days with one that uses the "coming soon" directives that allows the user to actually select an editable layer first.

Same origin issues

When trying to insert, update or delete, we get errors:

XMLHttpRequest cannot load https://geomapfish-demo.camptocamp.net/2.1/wsgi/layers/113. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 404.

Todo

Live example

@adube
Copy link
Contributor Author

adube commented Jun 23, 2016

@sbrunner Would you please look at the "Same origin" issue I'm having ? Thanks.

@adube adube force-pushed the gmf-editfeature-service branch 4 times, most recently from 61b3708 to d98dad0 Compare June 23, 2016 18:05
@adube
Copy link
Contributor Author

adube commented Jun 23, 2016

@fredj You can review right away, if you want.

@adube adube force-pushed the gmf-editfeature-service branch 2 times, most recently from da88467 to abac4e4 Compare June 28, 2016 12:17
@adube
Copy link
Contributor Author

adube commented Jun 28, 2016

@fredj Ready for review.

@sbrunner Any idea when the same origin issues might get fixed ?

Thanks.

@fredj
Copy link
Member

fredj commented Jun 28, 2016

can you please update the demo ?

@adube
Copy link
Contributor Author

adube commented Jun 28, 2016

Yes, I'm on it.

@adube
Copy link
Contributor Author

adube commented Jun 28, 2016

Demo updated. I'll check at the travis issue now.

@adube adube force-pushed the gmf-editfeature-service branch 2 times, most recently from a23e3fa to aa36d75 Compare June 29, 2016 17:10
@fredj
Copy link
Member

fredj commented Jun 30, 2016

@adube please create a new issue for the CORS issue at https://github.com/camptocamp/c2cgeoportal/issues

goog.require('ol.geom.Point');
goog.require('ol.layer.Tile');
goog.require('ol.source.OSM');

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing goog.require('goog.asserts');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm on it.

@fredj
Copy link
Member

fredj commented Jun 30, 2016

Looks good, please fix the missing require and this can be merged

@adube
Copy link
Contributor Author

adube commented Jun 30, 2016

Fixed and ready for merge once Travis is happy. Thanks for the review.

Issue about CORS created as well (see in the description above).

@adube
Copy link
Contributor Author

adube commented Jun 30, 2016

@fredj Travis is happy

@fredj fredj merged commit 5e3ec52 into camptocamp:master Jun 30, 2016
@adube adube deleted the gmf-editfeature-service branch June 30, 2016 14:38
@sbrunner sbrunner added this to the Older milestone Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants