Skip to content
DistrictMapperHelp
Browse topics

Troubleshooting Embeds

Fix common embed problems: firewall and content-filter blocks, iframe sizing, geolocation permission, and choosing script vs. iframe.

The widget loads at home but not on the school network

School and district networks often use firewalls or content filters that block external domains — including the ones DistrictMapper uses to serve map tiles, fonts, and short links. This is the most common cause of embeds not loading on campus.

How to fix it

  1. Go to https://app.districtmapper.com/embeds.
  2. Expand the Network whitelist section at the top of the page.
  3. Click Email my IT department — this opens a pre-filled email in your mail client with the list of domains to allow, ready to send. You fill in your IT contact’s address and hit send.

The domains that need to be allowed are:

Domain Purpose
https://app.districtmapper.com Embedded tools, map engine, address search, and API
https://tiles.openfreemap.org Base map tiles and fonts
https://basemap.nationalmap.gov Satellite map imagery (USGS The National Map)
https://challenges.cloudflare.com Spam protection on the school review form (Cloudflare Turnstile)
https://mapr.to Short links and QR join codes
https://fonts.googleapis.com Web fonts (if your brand uses a Google font)
https://fonts.gstatic.com Web font files

Tip: The email generated by the app includes each domain and a plain-English explanation of its purpose — making it easy for your IT team to act quickly.


The iframe is cut off or shows a scroll bar

The iframe embed uses a fixed pixel height. If the content is taller than that height, a scroll bar appears inside the iframe.

To fix: Find the height="600" (or similar) attribute in your embed code and increase the value to something like height="800" or height="900".

The script embed resizes automatically for the list-style tools (Schools Directory, SchoolCompare, ProgramDirectory, CalendarKit, BondTracker, and Brand Hub). SchoolMap is the exception: the map has a fixed height in both formats, 600px by default. To make the SchoolMap script embed taller, add a data-height attribute to its container, for example <div data-districtmapper="finder" data-district="your-district-slug" data-height="800"></div>. See Adjust the height.


The map won’t ask for my location (geolocation)

The map embed requests geolocation so it can center on the user’s current location as a starting point. Browsers require the page to be served over HTTPS before they will grant geolocation permission to an embedded iframe. If your district website is still on HTTP, geolocation will be silently blocked.

The iframe embed includes allow="geolocation; fullscreen" to pass the permission through. If your CMS removes or ignores that attribute, the browser will not prompt the user for location access.

To fix:

  1. Ensure your district website uses HTTPS (contact your web host or IT department if it does not).
  2. If you are using the iframe embed, confirm the allow="geolocation" attribute is still present in the published HTML.
  3. The script embed handles the geolocation permission automatically.

My CMS strips the <script> tag

Some CMSes (including certain configurations of WordPress and content-security-policy setups) block <script> tags in page content for security reasons.

To fix: Use the Iframe embed instead. It is a standard <iframe> tag that most CMSes accept without restriction.


The widget appears but looks unstyled or broken

This usually means one of the CDN domains is being blocked (see the firewall section above) or the page is loading the embed script multiple times.

  • Check your browser’s developer console (F12 > Console) for errors mentioning blocked or failed requests.
  • Keep a separate widget container for each directory or tool you want to show. Remove any unintended duplicate of the same placement.
  • Widgets that use the same embed.js loader can share one script tag on the page. Keep the container for each placement.

Last updated November 21, 2026