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
Fix 617 - Iframe API new app #4339
Conversation
26eaea1
to
35f1f27
Compare
* @export | ||
*/ | ||
const exports = function($scope, $injector) { | ||
gmfControllersAbstractDesktopController.call(this, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I it a good idea to use the AbstractDesktopController?
For me he contains many things that not useed on API interface ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point. Indeed, AbstractDesktopController contains more things that are not required by IframeAPI those required:
- map creation
- feature helper / vector features (if we want to load vector features in the map)
- isDesktop true
- query options
If you think it is best to have those copied in the controller of the app and extend AbstractAppController, please let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the best to create an AbstractAPIController and AbstractDesktopController will extend it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll do that.
35f1f27
to
b5eecc9
Compare
@sbrunner Ready for review. |
Thanks :-) |
@sbrunner Thanks. (Before merging): Should we address the attribution issue in an other task, then? (see description above) |
@adube Effectively it seem that's not used, can you remove it on all the applications? |
And merge it :-) |
This patch introduces a new application called
iframe_api
, which is designed to be included within an iframe and doesn't have any tool in it.This patch also introduces a new
AbstractAPIController
, which creates only the map, ensures that the bbox query tool can be implemented and defines some query options. Desktop now inherits from it.See also: https://jira.camptocamp.com/browse/GSGMF-617
Attribution
The app includes aolAttribution
, but it would seem that none of the layers created by GMF/NGEO are configured to work with it. This is worth discussing...We're using the disclaimer instead.
LayerTree
While working on the disclaimer / attribution, I noticed that the disclaimer component was already there but nothing was shown. I also noticed that there were not layers being created in the map. Then, I remembered: the
<gmf-layertree>
is mandatory if we want our layers to be created in GMF.So, as part of this app, it is created, but hidden using CSS. As soon as I did that, I saw the disclaimers appear and the features on the map as well from the layers loaded in the default theme.