Skip to main content
100%

Hello, AMPs

✓ Published0🌍 Public
Aandrewxhill
Last edited Mar 18, 2016
Created on Mar 18, 2016

This example demonstrates how an interactive CartoDB map can be embedded within an Accelerated Mobile Pages (AMP) document. The page displays a 300x300 pixel iframe that loads a CartoDB visualization, positioned after a tall filler paragraph to satisfy AMP’s 600px/75% iframe placement rule. The code uses the AMP `amp-iframe` custom element with a sandbox attribute allowing scripts and popups, alongside standard AMP boilerplate and JSON-LD metadata. The map itself comes from a CartoDB embed URL, showing a geographic data visualization without custom JavaScript or rendering libraries.

AI-generated description

Example of a CartoDB iframe in the Amp library

Similar vizzes