-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Share current view of map via URL search params #2437
Conversation
fe03591
to
b121572
Compare
src/js/views/portals/PortalView.js
Outdated
this.model.get("name") + | ||
" " + | ||
MetacatUI.appModel.get("portalTermSingular") + | ||
" can be viewed in the ", |
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.
[prettier] reported by reviewdog 🐶
this.model.get("name") + | |
" " + | |
MetacatUI.appModel.get("portalTermSingular") + | |
" can be viewed in the ", | |
this.model.get("name") + | |
" " + | |
MetacatUI.appModel.get("portalTermSingular") + | |
" can be viewed in the ", |
src/js/views/portals/PortalView.js
Outdated
"#portal-section-tabs", | ||
), |
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.
[prettier] reported by reviewdog 🐶
"#portal-section-tabs", | |
), | |
"#portal-section-tabs", | |
), |
src/js/views/portals/PortalView.js
Outdated
@@ -533,7 +535,7 @@ define([ | |||
} catch (error) { | |||
console.log( | |||
"Error re-arranging tabs according to the pageOrder option. Error message: " + | |||
error, | |||
error, |
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.
[prettier] reported by reviewdog 🐶
error, | |
error, |
src/js/views/portals/PortalView.js
Outdated
MetacatUI.root + | ||
"/css/portal-layouts/" + | ||
layout + | ||
".css", |
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.
[prettier] reported by reviewdog 🐶
MetacatUI.root + | |
"/css/portal-layouts/" + | |
layout + | |
".css", | |
MetacatUI.root + | |
"/css/portal-layouts/" + | |
layout + | |
".css", |
src/js/views/portals/PortalView.js
Outdated
". Error details: " + | ||
error, |
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.
[prettier] reported by reviewdog 🐶
". Error details: " + | |
error, | |
". Error details: " + | |
error, |
src/js/views/portals/PortalView.js
Outdated
//If the request to the monitor/status API fails, then show the not-found message | ||
view.showNotFound.call(view); | ||
}, |
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.
[prettier] reported by reviewdog 🐶
//If the request to the monitor/status API fails, then show the not-found message | |
view.showNotFound.call(view); | |
}, | |
//If the request to the monitor/status API fails, then show the not-found message | |
view.showNotFound.call(view); | |
}, |
src/js/views/portals/PortalView.js
Outdated
"\".</p><p><i class='icon icon-exclamation-sign'></i> If this portal was created in the last few minutes, it may still be processing, since there are currently <b>" + | ||
sizeOfQueue + | ||
"</b> submissions in the queue.</p>", |
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.
[prettier] reported by reviewdog 🐶
"\".</p><p><i class='icon icon-exclamation-sign'></i> If this portal was created in the last few minutes, it may still be processing, since there are currently <b>" + | |
sizeOfQueue + | |
"</b> submissions in the queue.</p>", | |
"\".</p><p><i class='icon icon-exclamation-sign'></i> If this portal was created in the last few minutes, it may still be processing, since there are currently <b>" + | |
sizeOfQueue + | |
"</b> submissions in the queue.</p>", |
src/js/views/portals/PortalView.js
Outdated
"The data portal \"<span id='portal-view-not-found-name'></span>" + | ||
"\" doesn't exist.", |
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.
[prettier] reported by reviewdog 🐶
"The data portal \"<span id='portal-view-not-found-name'></span>" + | |
"\" doesn't exist.", | |
"The data portal \"<span id='portal-view-not-found-name'></span>" + | |
"\" doesn't exist.", |
src/js/views/portals/PortalView.js
Outdated
icon + | ||
"'></i>" + | ||
errorTitle + | ||
"</h4>" + | ||
errorMsg, |
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.
[prettier] reported by reviewdog 🐶
icon + | |
"'></i>" + | |
errorTitle + | |
"</h4>" + | |
errorMsg, | |
icon + | |
"'></i>" + | |
errorTitle + | |
"</h4>" + | |
errorMsg, |
src/js/views/portals/PortalView.js
Outdated
@@ -1111,19 +1119,19 @@ define([ | |||
} catch (error) { | |||
console.log( | |||
"There was a problem trying to display the error message in the Portal View. Error details: " + | |||
error, | |||
error, |
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.
[prettier] reported by reviewdog 🐶
error, | |
error, |
b121572
to
b817596
Compare
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.
Have we tested this on a main repo map?
05a6e43
to
e3e2132
Compare
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.
This works so well @ianguerin, people are going to be really excited about this!
Approved pending changes @yvonnesjy requested
src/js/models/maps/Map.js
Outdated
// TODO(ianguerin): make this false before checking in. | ||
showShareUrl: true, |
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.
// TODO(ianguerin): make this false before checking in. | |
showShareUrl: true, | |
showShareUrl: false, |
Includes heading, pitch, roll, latitude, longitude, height, and enabled layers. Add feature behind Map config showShareUrl.
…be properly set when switching between tabs in a PortalView
7ed0a42
to
844a1a6
Compare
Includes heading, pitch, roll, latitude, longitude, height, and enabled layers.
Add feature behind Map config showShareUrl.
QuickDemoShareViewToURL.webm
#1806