Displaying Maps on Your Web App With Less HTML
Show maps with a few lines of HTML using custom elements
Published in
3 min readApr 4, 2021
This article is to introduce you to a simple way of having a map on a web page. To do so, please add these two lines of HTML to your webpage:
<script src="//unpkg.com/elements-x@1.4.4/dist/mapbox"></script>
<x-mapbox center="Toronto, Canada"…