Embedded Map Shows in Edit Mode but not in the Post

I followed the standard procedure to embed a map in a post:

  1. Go to Google Maps and browse to the desired location.

  2. From the menu, select Share or Embed Map.

  3. From the dialog box that appears, take the Embed a Map tab at the top.

  4. Select a size for the map from the drop-down.

  5. Click on Copy HTML which is an iframe tag.

Back to the Post in Connect.

  1. Click the HTML button.

  2. Add a tag and insert the iframe HTML copied from Google Maps.

  3. A preview of the map appears in the Edit mode.

When I click Save Changes, the map is not displayed in the post.

Anyone know why?

BR,

Tushar

Hi @TusharSuradkar , Thanks for reaching out. I’m afraid that the use of Iframe on Connect is no longer available, except for Moderators.

Best regards, Alexandre

Hi @TusharSuradkar

As indirectly hinted you are mixing up two methods of inserting something into a post. Html code designed to create an iframe can not just be added as if it was an image. What you can do is to show a static image (share a screenshot) or you can post a link to the map, that your readers then can click/tap to see the map you want them to see. Info on position and zoom level are integrated in the long URLs on Google Maps when using Desktop.

Cheers

Hi @MortenCopenhagen

Thanks for your note.

  1. Which indirect hints are you talking about?

  2. Which two methods about inserting are you talking about?

  3. I have no confusion whatsoever about inserting images in a post nor I have mentioned anything about inserting images.

  4. My question is straightforward which is about the map being shown in edit mode but does not appear after saving changes.

  5. Finally, No, inserting static images or links is not what I seek. It does not serve my purpose, hence my investigation and the question.

If the map embedding is not working, then it is clearly not working. I was only seeking some hint that I was perhaps missing.

I know you are trying to say something here, my friend. Perhaps I am not able to comprehend fully.

BR,

Tushar

@TusharSuradkar

I was trying to be helpful in a friendly and constructive tone. Here is another way of telling you the same thing: You are not allowed to embed anything in iframes. It gets stripped when posting. The stripping takes place after you post - hence the difference in edit vs final post.

Thanks a ton, @MortenCopenhagen for confirming.

I am now sure, if it is coming from a stalwart like you, it is not possible or supported.

Thanks once again for everything you do for the Connect community.

Best Regards,

Tushar

Hi @TusharSuradkar

To go a bit in deep with the answers you received by @AlexandreCampbell and @MortenCopenhagen , the use of I-frame is blocked on Connect, because through I-frame you can embed also not appropriate contents.

Moderators are allowed to use I-frame, but you will see very rarely a map embedded in Connect, because normally the moderators use I-frame only if necessary.

As an example, you can check:

Thank you for interjecting @ErmesT

I agree.

From the response by @AlexandreCampbell and @MortenCopenhagen it is amply clear that iframe is restricted to moderators and not allowed for other LGs.

Fine by me. No worries!!

I researched a bit online about iframe and this website says it can be used to embed another document within the current HTML document, which I too think could potentially produce an undesirable outcome.

I wish I could accept multiple solutions on this forum, but I will save that for a different topic.

Best Regards,

Tushar

The solution you accepted is perfect, @TusharSuradkar

I wanted to add a note only to explain why an I-frame instruction will be automatically removed by the software, even if you can see the results on the preview.

Potentially dangerous code are automatically removed from Connect, before the post to go live. I know that for the Local Guides who are trying to post appropriate contents, like a map or a 360 photo, this can be frustrating, but I support, for the safety of the community, the actual situation, and I simply try to not abuse of the permission that I have for the use of I-frame