-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add new page screen: Issue with rendering map block in in preview #48883
Comments
@ianstewart, I put together a fix in #49101 that refactored the preview, however there are some concerns with the approach given that Ganon will be working on the redesigned layout picker shortly. In the short-term, what do you think about us unpublishing / switching this layout to draft to hide it from the layout picker? The issue is that the existing preview iframe does not load the necessary JS for the block to function. In the short-term it looks like the existing layout picker preview does not support any blocks that use JavaScript to render their default behaviour / layout. |
Following this comment … I've kept this pattern live but am removing it from the page layout picker for now. |
In terms of investigating how to get the Map block to play nicely in an iframe context, it looks like the Map block is complaining because the |
Related issue with mShots: Automattic/mShots#30 |
Update: it looks like Mapbox v2.1 might resolve the mShots rendering issue directly (I've added a comment in: Automattic/mShots#30 (comment)), however Mapbox v2 drops IE11 support, which is a non-starter in Jetpack. So, I think our next best bet is to see about adding support for the Mapbox Static Images API which was raised in Automattic/jetpack#14827. The solutions are therefore:
|
To reproduce, visit the add new page screen and observe the following contact pattern.
(Note: the issues in this screenshot with the gallery patterns are reported in #48881)
This is the editor content for the source site:
https://dotcompatterns.wordpress.com/2020/01/24/contact-7/
The text was updated successfully, but these errors were encountered: