Custom Website Tutorial

How to Embed a Live Transit & Fleet Map on Custom Website

Adding animated vehicle tracking and live routes to your Custom Website site doesn't require a developer. Follow these 3 simple steps to launch your map today.

Create Your Live Transit & Fleet Map

Your Live Transit & Fleet Map template will be selected automatically.

Create your Live Transit & Fleet Map

Start on the create-widget page. The Live Transit & Fleet Map template is preselected for you. Give the widget a name, open the builder, add your locations, and adjust the map design and interactive features while watching the live preview.

Build the widget first, then return here to embed it.

You can explore the builder before creating an account.

Open the Live Transit & Fleet Map Builder

Copy the Embed Code

Once your map is ready, click the Publish button in the top right corner. MapWeave generates three ways to share your widget. For Custom Website, we highly recommend using the JavaScript Snippet method.

Recommended for Custom Website

JavaScript Snippet

Best for modern builders and automatic mobile responsiveness.

<div id="mapweave-transit-fleet" data-client-id="YOUR_WIDGET_ID" style="width: 100%; height: 1000px; border-radius: 12px; overflow: hidden;"></div>
<script src="https://www.getmapwidget.com/widgets/embed-injector.js" async defer></script>
API key note: Standard hosted widgets do not require your own Google Maps API key. Advanced/self-hosted modes may require your own key in your MapWeave configuration settings.

iFrame Embed

Best for strict CMS platforms that block external JavaScript.

<iframe src="https://www.getmapwidget.com/embed/YOUR_WIDGET_ID" width="100%" height="1000px" frameborder="0" allow="geolocation" style="border: none; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);"></iframe>

Direct URL Link

Best for sharing in emails, social media, or hyperlink buttons.

https://www.getmapwidget.com/embed/YOUR_WIDGET_ID

Paste into Custom Website

For Custom Website users:
Copy the MapWeave embed script and paste it directly into your HTML code where you want the map to appear. It works perfectly inside any standard <div> container.

Save and publish your Custom Website page. Your interactive map is now live!

Ready to upgrade your Custom Website site?

Start with the correct widget template, customize it in the live builder, then copy the embed code into Custom Website.

Create Your Live Transit & Fleet Map