# Map not showing when published even with API key

**URL:** <https://forums.realmacsoftware.com/t/map-not-showing-when-published-even-with-api-key/19878>\
**Category:** RapidWeaver Classic\
**Created:** [April 24, 2018, 5:19pm UTC](https://forums.realmacsoftware.com/t/map-not-showing-when-published-even-with-api-key/19878 "2018-04-24T17:19:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [April 24, 2018, 5:19pm UTC](https://forums.realmacsoftware.com/t/map-not-showing-when-published-even-with-api-key/19878/1 "2018-04-24T17:19:53Z")

</div>

Just redesigned an old site and the Google map has stopped showing on published site. It displays fine in preview. Javascript console is showing the following error:

![12](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/9/92887432139f0e95f962427a49916c23bddae054.png)

Anyone got any clues? The Map stack is Doobox Map2.

---

<div class="post-metadata">

**Author:** ![Doobox](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/doobox/32/32373_2.png) [@Doobox](https://forums.realmacsoftware.com/u/Doobox)\
**Post date:** [April 24, 2018, 5:39pm UTC](https://forums.realmacsoftware.com/t/map-not-showing-when-published-even-with-api-key/19878/2 "2018-04-24T17:39:47Z")

</div>

Is that our Map 2 stack?  
If so your map API key is invalid at least for this page.  
This is the error that gets thrown. (we should handle the error better when the api key fails, but this is the reason).

---

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [April 24, 2018, 9:22pm UTC](https://forums.realmacsoftware.com/t/map-not-showing-when-published-even-with-api-key/19878/3 "2018-04-24T21:22:42Z")

</div>

OK thanks - why would the API be invalid? It’s one I got from Google (about 18 months ago) and it worked fine until this rebuild?

---

<div class="post-metadata">

**Author:** ![Doobox](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/doobox/32/32373_2.png) [@Doobox](https://forums.realmacsoftware.com/u/Doobox)\
**Post date:** [April 24, 2018, 9:37pm UTC](https://forums.realmacsoftware.com/t/map-not-showing-when-published-even-with-api-key/19878/4 "2018-04-24T21:37:55Z")

</div>

Perhaps you changed the server, the protocol, or something else that could have made any referrers you added to the api key when you created it invalid for your re-build.

PS: In the preview, the map uses our API key, and only starts using your API key when published. In case you were wondering, well how the hell does it work inside RW.

---

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [April 27, 2018, 9:40am UTC](https://forums.realmacsoftware.com/t/map-not-showing-when-published-even-with-api-key/19878/5 "2018-04-27T09:40:22Z")

</div>

What happened is that the company name has changed and what used to be an alias domain is now the primary one. Even though the various domains are all linked, Google’s API will of course be very specific. My oversight but thanks for your input.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [May 27, 2018, 7:40pm UTC](https://forums.realmacsoftware.com/t/map-not-showing-when-published-even-with-api-key/19878/6 "2018-05-27T19:40:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
