bobbingwide / oik-blocks

WordPress 5.0 blocks for oik shortcodes
https://oik-plugins.com/oik-plugins/oik-blocks
GNU General Public License v3.0
1 stars 0 forks source link

Create a Google Maps map block for [bw_show_googlemap] #3

Closed bobbingwide closed 2 years ago

bobbingwide commented 6 years ago

Requirement

Create a Google Maps map block to replace/enhance [bw_show_googlemap]

Initial solution

bobbingwide commented 4 years ago

Here's a screenshot of a 'confused' Google Maps block.

It's confused because it doesn't have a border.

It was created using the trick I learnt that automatically corrects a block when it's selected as part of a group. I discovered this trick when selecting and moving a heading, paragraph and block list block from the bottom of a page to the top. I tried the same technique with a single broken block ( this Google Maps block ) and it went dolally.

image

I resolved the issue by using the Code editor and manually removing the Group that surrounded the Google Maps block ( oik/googlemap ). Perhaps there should be an issue raised that you shouldn't be able to convert a single broken block into a group.

Actually. It's broken the broken block in the trick. Actually. It's not broken. You just need to Ungroup.
It's just a bit confusing.

bobbingwide commented 2 years ago

The GoogleMap block is now in oik. See https://github.com/bobbingwide/oik/issues/177