-
Notifications
You must be signed in to change notification settings - Fork 25
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
Maps catalog page #59
Comments
@allyoucanmap please can you provide an icon for this new menu option? |
@allyoucanmap please commit needed updates in MS to allow @vlt1 using the first icon |
Here I report some issues noticed when tried to integrate it in georchestra that have to be fixed @vlt1 . Adding it in localConfig.json has the following problem:
Adding it as a plugin:
Moreover:
|
@offtherailz the results of my testing:
For me delete works the way you described in "Adding it as a plugin" section. The problem is that, when the second request is sent to the server, after deleting, the response is wrong. Instead of returning a list of maps without the deleted one(as it is in mapstore) here it returns the same list, as it was before deleting, the totalCount is less by one. In other words the response sent by the server is inadequate. If you were to reload again then the response is correct. For example, before deletion:
Then after I delete the map "deletme", I get this response:
As you see the second response contains the same maps, but the totalCount correctly changes. There seems to be some kind of a problem on the side of the server.
In my testing maps were loaded correctly when I selected them :(
Yes, I will make a pr to MapStore to fix that behaviour
I updated MapStore to the latest master to use the icon. When the deletion and map select points are resolved i will make a pr
What about these? Also what do you mean close the panel? When map is selected it loads it and after this all panels are closed(in my tests at least). |
@offtherailz @vlt1 below my feedback:
|
@offtherailz I'll try to add a delay |
@offtherailz @vlt1 @tdipisa my general thought about issues with geostore transactions is that since geostore is our own backend, and we also have a backend project inside mapstore, we should stop creating complicated workarounds in the frontend and start improving the backend properly. These are good starting points: |
@vlt1 and @offtherailz here blow are my additional feedbakcs after my testing this afternoon (I tested this functionality in georchestra dev environment). I don't know if there are some side effect during the local development and testing but the problems here are two in my opinion:
At this point if I try to delete this new map, the map is not deleted because MS doesn't perform any request for this: at this point if you refresh the browser's page and you try again, the map is deleted because MS perform the delete request to the backend. Therefore I think that the problem is that MS doesn't perform the delete request the first time
https://georchestra.geo-solutions.it/mapstore/#/viewer/openlayers/983 that URL is wrong, it must be the URL of the context with the map ID at the end (as required here) and not the URL of the default context. Also the map's share URL from Map Catalog tool must be the same and it is currently wrong: I think a regression has been recently introduced here due to the above: in MS dev I created this two maps in the espacesvertsdrennes context:
but if I search them from MS home using the context filter those maps are not available in the search result list When I tested this last week, it was warking peoperly. @offtherailz @vlt1 can you confirm this regression? |
@tdipisa I'm guessing you are saving the map and then are immmediately trying to delete it. I see that there is an issue in the map saving, maybe some sort of uncaught exception or something that kills the epics, and so they are not processed anymore. (for example after you saved the map try to save another one, that will fail too). If you don't save the map and just work with MapCatalog everything works as expected. Although, in the testing environment provided to me by @offtherailz, there is an issue with inadequate server response as I've described in the previous comment.
@tdipisa Maps that you listed do not appear because from what I can see they do not contain a context attribute, therefore they do not belong to any context. This suggests an issue with saving. I've just tested locally using the latest MapStore master and created two maps "savecontexttest" and "savecontexttest2" with no issues. I also tried the same on dev server and also created maps "savecontexttest-dev" and "savecontexttest-dev2" with no issues. Could you please describe in detail your process for creating the maps? |
As I specified, I've tested it in geOrchestra DEV (using the context here). There is no error in geOrchestra DEV while saving a map in a context as it currently happens in MS DEV (#5008). The map is saved but the URL is wrong, to check it try to open this context then:
the loaded map URL or the URL in the share tool are: that is wrong, it should be: https://georchestra.geo-solutions.it/mapstore/#/context/tdipisa_test_map_delete/{MAP_ID}
yes, there is currently a problem with the save operation in MS dev, the one reported here. I've simply:
So I think there is a problem somewhere and an inconsistency between MS DEV and geOrchestra DEV |
@tdipisa To create a map that belongs to a context you have to use the "Existing context" option in create new map menu on the landing page. I'm not aware of any such functionality in Save Plugin |
@tdipisa the url is not wrong, these maps have no context, they were saved without one |
Since the main entry point for geOrchestra is the viewer, an option menu should be available in the viewer context to browse the catalog of user maps.
A new plugin should be added to MapStore. The new menu entry added to the burger menu should open a panel containing the "MapCatalog" component (already used in geostory and dashboards to allow the user to browse maps and select one to load in the current view (similar to the template list, reusing and extending the existing catalog).
If the map item in the catalog list is clicked the map is loaded in the same browser page: if the map has been saved within a context, the same behavior provided for context maps will be applied and the map will be loaded with the context's URL:
https://dev.mapstore2.geo-solutions.it/mapstore/#/context/{ContextName}/{MapId}
The
MapCatalog
should be enhanced to add (optionally) some additional buttons that should appear for each item in the list. The buttons to add are the same of the home page:https://dev.mapstore2.geo-solutions.it/mapstore/#/context/{ContextName}/{MapId}
The text was updated successfully, but these errors were encountered: