-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Improve integration with AI-assisted mapping #2065
Comments
Is there documentation on how I can setup a tasking manager with RapiD? Or migrate an existing tasking-manager? |
@jayenashar Do you want to make RapiD your main editor or just give users the option to use it? |
if there's no licensing issues, the main editor. |
@jayenashar we are going to integrate RapiD inside TM on the next few months, for now I think you could: replace Let me know if that solution works. |
did you mean to paste a link to the same line in two separate branches? i was able to do the first replacement, but now the TM goes to a URL like |
@jayenashar sorry, the second link I pasted was wrong. I fixed it on my previous comment. |
Actually, replace that line: https://github.com/hotosm/tasking-manager/blob/fix/env-var-instructions/frontend/src/utils/openEditor.js#L18 by:
|
@jayenashar you'll also need to move that if statement to after the following one. |
here's my diff: diff --git a/frontend/src/utils/openEditor.js b/frontend/src/utils/openEditor.js
index 761ff3b2..6844b8e6 100644
--- a/frontend/src/utils/openEditor.js
+++ b/frontend/src/utils/openEditor.js
@@ -15,7 +15,12 @@ export function openEditor(
}
const { center, zoom } = getCentroidAndZoomFromSelectedTasks(tasks, selectedTasks, windowSize);
if (editor === 'ID') {
- return getIdUrl(project, center, zoom, selectedTasks, '?editor=ID');
+ if (windowObjectReference == null || windowObjectReference.closed) {
+ windowObjectReference = window.open('', `iD-${project}-${selectedTasks}`);
+ }
+ const rapidUrl = 'https://mapwith.ai/rapid';
+ windowObjectReference.location.href = getIdUrl(project, center, zoom, selectedTasks, rapidUrl);
+ return '?editor=CUSTOM';
}
if (windowObjectReference == null || windowObjectReference.closed) {
windowObjectReference = window.open('', `iD-${project}-${selectedTasks}`); it opens rapid but doesn't zoom to the task. i was also a little confused by |
What's the URL it's generating? If you want your users to use only Rapid, another solution would be to set a custom editor on all projects and activate only the custom editor on all projects. |
looks like it opened this: which redirected to: and then: and i think finally stopped redirected on: |
So far:
Let's think about making AI-assisted mapping a standard feature of Tasking Manager.
The text was updated successfully, but these errors were encountered: