-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Full screen button added in inline maps, Multiple maps in Wiki page works now. #6699
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4828e7a
full screen added
sagarpreet-chadha 39f1be7
working on wiki page
sagarpreet-chadha 0e1a8e9
code refactoring
sagarpreet-chadha 3accc34
console logs removed
sagarpreet-chadha 0d866a1
inline map layers are ON by default now
sagarpreet-chadha faa6fba
version bump of LEL to add new Layers
sagarpreet-chadha fc8642e
api changed tagslocation init
sagarpreet-chadha 371915b
api taglocations changed
sagarpreet-chadha f7f4098
popup content changed
sagarpreet-chadha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
<%= stylesheet_link_tag "/lib/leaflet/dist/leaflet.css" %> | ||
<%= stylesheet_link_tag "/lib/leaflet.fullscreen/Control.FullScreen.css" %> | ||
|
||
<%= stylesheet_link_tag "/lib/leaflet-environmental-layers/dist/LeafletEnvironmentalLayers.css" %> | ||
|
||
<%= javascript_include_tag('/lib/leaflet-environmental-layers/dist/LeafletEnvironmentalLayers.js') %> | ||
<%= javascript_include_tag('/lib/leaflet-environmental-layers/src/windRoseLayer.js') %> | ||
<%= javascript_include_tag('/lib/leaflet-fullhash/leaflet-fullHash.js') %> | ||
|
||
<%= javascript_include_tag('https://unpkg.com/esri-leaflet@2.2.3/dist/esri-leaflet.js') %> | ||
<%= javascript_include_tag('https://unpkg.com/esri-leaflet-renderers@2.0.6') %> | ||
|
||
<%= javascript_include_tag('https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js') %> | ||
<%= stylesheet_link_tag "https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css" %> | ||
|
||
<%= javascript_include_tag('/lib/leaflet-spin/example/spin/dist/spin.min.js') %> | ||
<%= javascript_include_tag('/lib/leaflet-spin/example/leaflet.spin.min.js') %> | ||
|
||
<%= javascript_include_tag('/lib/leaflet.fullscreen/Control.FullScreen.js') %> | ||
|
||
<%= javascript_include_tag('https://cdnjs.cloudflare.com/ajax/libs/OverlappingMarkerSpiderfier-Leaflet/0.2.6/oms.min.js') %> | ||
|
||
<%= javascript_include_tag('/lib/leaflet-environmental-layers/example/lib/glify.js') %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@jywarren ... commenting this code does the tricks for wiki page.
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.
Do we need 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.
Um, let me look at this code to see what it's supposed to do!
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.
OK, strangely I can't find this code in our codebase but I definitely wrote it.
OMG ok i chased this SUPER DEEP - back to https://github.com/publiclab/plots2/pull/1224/files
where I had made this library:
https://github.com/jywarren/short-code-forms
whoaaaaa
It looks for:
[prompt:_______]
style inline tags: https://github.com/jywarren/short-code-forms/blob/master/examples/index.html#L39The code that drives this is not complex: https://github.com/jywarren/short-code-forms/blob/master/dist/short-code-prompts.js
I think we do need this, but i'm not sure why this is causing trouble because it's supposed to look for the word "prompt":
/\[prompt:(\w*):*([\s\w]*):*(\w*)\]/g;
is the regex.Strange!
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'm not sure how you're testing it but could this help to debug?
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.
Oh cool, I was just looking on how /wiki code is different from /note and found this to be different. I commented this code and the maps are now working!