-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: Fallback to embedded iframe map #3760
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
Conversation
@prateekj117 @kushthedude Please review and test as I have to release this after merging |
{{/g-map-address-marker}} | ||
{{/g-map}} | ||
{{#if (eq mapConfig.display 'embed') }} | ||
<iframe class="g-map" src="https://maps.google.com/maps?q={{event.locationName}}&t=&z=15&ie=UTF8&iwloc=&output=embed" frameborder="0" scrolling="no"></iframe> |
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.
Is it temporary @iamareebjamal ,as we are not using any custom calls in the app? If yes, we should just add a comment untill mapbox is implemented, as it will break the coding conventions getting followed for handlebars in the repository.
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.
No, it is not temporary. If there is neither mapbox nor google API, this will be rendered. As both services are paid and this is free.
as we are not using any custom calls in the app?
What do you mean by custom calls? Google Maps API is a custom library and we are using it anyway
as it will break the coding conventions getting followed for handlebars in the repository
What coding conventions for handlebars, can you elaborate?
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.
Nothing,I didnt saw the iframe tag thought it is js tweak.
It will be better to add some text between iframe tag, if iframe is not supported in any device?
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.
If iframe is not supported in that device, then the device probably does not even have a working browser. iframe is an HTML4 element which was launched in December 18, 1997 and probably older than you
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.
😅 Its lgtm
Complexity increasing per file
==============================
- config/environment.js 3
See the complete overview on Codacy |
Fixes #3761