Map loads fine locally, but not via IIS

Jun 15, 2011 at 4:29 PM


First off, thank you for taking the time to create a map generator for Terraria!

Here's my problem:

I have a dedicated server for running both a Minecraft server and a Terraria server.  This server has a nightly task set up to generate both Minecraft and Terraria maps.  Your map generator works fine, and the generated map loads just fine locally (on the server itself) in both Firefox and Internet Explorer.  However, I cannot host the generated map via IIS.  I have experience with IIS, and I am doing everything right ... but I get all black when the map loads in another machine's browser (both on the local network and across the internet).  It displays the Google logo and tools just fine, but the whole map is black;  dragging it around does not help.


Thank you in advance!

Jun 30, 2011 at 12:37 PM
Edited Jun 30, 2011 at 12:59 PM

Verify that the permissions on all the files are correct for the IIS account.  If all the permissions are correct change:

var basePath = "C:/Inetpub/wwwroot/gallery/terrariamap/Map/";


var basePath = "./";  


If you still receive the black screen then you will likely need to sign up for a Google Maps API key.  Once you have the API key change:

<script type="text/javascript" src="">


<script type="text/javascript" src=";key=#####">

Replacing ##### with the API key you received from google.  I had to do all of the above for the site to load from my server.

Jul 6, 2011 at 3:57 PM

No good.  I have done the following, with the following results:

1)  Verified my permissions (NTFS:  "Everyone = Read")

2)  Altered var basePath ... all this did was stop the map from loading locally as well.

3)  Signed up for a Google Maps API key and altered the map.html file as you instructed above.  No impact on anything at all.